共用方式為


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

'宣告
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

Return Value

Type: System.Int32
The index of the snapshot span.

Implements

IList<T>.IndexOf(T)

.NET Framework Security

See Also

Reference

NormalizedSnapshotSpanCollection Class

IndexOf Overload

Microsoft.VisualStudio.Text Namespace