ITrackingPoint.GetPoint 方法

将跟踪点映射到其 ITextBuffer 的特定快照。

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

语法

声明
Function GetPoint ( _
    snapshot As ITextSnapshot _
) As SnapshotPoint
SnapshotPoint GetPoint(
    ITextSnapshot snapshot
)
SnapshotPoint GetPoint(
    ITextSnapshot^ snapshot
)
abstract GetPoint : 
        snapshot:ITextSnapshot -> SnapshotPoint
function GetPoint(
    snapshot : ITextSnapshot
) : SnapshotPoint

参数

返回值

类型:Microsoft.VisualStudio.Text.SnapshotPoint
SnapshotPoint

异常

异常 条件
ArgumentNullException

snapshot 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

ArgumentException

snapshot 不是 ITextBuffer快照。

.NET Framework 安全性

请参阅

参考

ITrackingPoint 接口

Microsoft.VisualStudio.Text 命名空间