NormalizedSnapshotSpanCollection.IndexOf 方法 (SnapshotSpan)

获取指定的 SnapshotSpan 的索引。

命名空间:  Microsoft.VisualStudio.Text
程序集:  Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)

语法

声明
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

参数

返回值

类型:Int32
快照范围的索引。

实现

IList.IndexOf(UTP)

.NET Framework 安全性

请参阅

参考

NormalizedSnapshotSpanCollection 类

IndexOf 重载

Microsoft.VisualStudio.Text 命名空间