共用方式為


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 命名空間