共用方式為


NormalizedSnapshotSpanCollection.IndexOf Method

Definition

Overloads

IndexOf(SnapshotSpan)

Gets the index of the specified SnapshotSpan.

IndexOf(Object)

Gets the index of the specified snapshot span.

IndexOf(SnapshotSpan)

Gets the index of the specified SnapshotSpan.

public:
 virtual int IndexOf(Microsoft::VisualStudio::Text::SnapshotSpan item);
int IndexOf(Microsoft::VisualStudio::Text::SnapshotSpan item);
public int IndexOf (Microsoft.VisualStudio.Text.SnapshotSpan item);
abstract member IndexOf : Microsoft.VisualStudio.Text.SnapshotSpan -> int
override this.IndexOf : Microsoft.VisualStudio.Text.SnapshotSpan -> int
Public Function IndexOf (item As SnapshotSpan) As Integer

Parameters

Returns

The index of the snapshot span.

Implements

Applies to

IndexOf(Object)

Gets the index of the specified snapshot span.

public:
 virtual int IndexOf(System::Object ^ value);
public:
 int IndexOf(Platform::Object ^ value);
int IndexOf(winrt::Windows::Foundation::IInspectable const & value);
public int IndexOf (object value);
abstract member IndexOf : obj -> int
override this.IndexOf : obj -> int
Public Function IndexOf (value As Object) As Integer

Parameters

value
Object

The snapshot span.

Returns

The location of the snapshot span.

Implements

Applies to