将快照点隐式转换为一个整数,该整数与快照点在快照中的位置相等。
命名空间: Microsoft.VisualStudio.Text
程序集: Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)
语法
声明
Public Shared Widening Operator CType ( _
snapshotPoint As SnapshotPoint _
) As Integer
public static implicit operator int (
SnapshotPoint snapshotPoint
)
static implicit operator int (
SnapshotPoint snapshotPoint
)
F# 不支持新转换运算符的声明。
JScript 不支持新转换运算符的声明。
参数
snapshotPoint
类型:Microsoft.VisualStudio.Text.SnapshotPoint快照点。
返回值
类型:Int32
与快照点在快照中的位置相等的整数。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。