NormalizedSnapshotSpanCollection.IndexOf Method (SnapshotSpan)
Gets the index of the specified SnapshotSpan.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaración
Public Function IndexOf ( _
item As SnapshotSpan _
) As Integer
public int IndexOf(
SnapshotSpan item
)
public:
virtual int IndexOf(
SnapshotSpan item
) sealed
abstract IndexOf :
item:SnapshotSpan -> int
override IndexOf :
item:SnapshotSpan -> int
public final function IndexOf(
item : SnapshotSpan
) : int
Parameters
- item
Type: Microsoft.VisualStudio.Text.SnapshotSpan
The SnapshotSpan.
Return Value
Type: System.Int32
The index of the snapshot span.
Implements
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.