获取指定的 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。