Compartilhar via


ITrackingSpan.GetEndPoint Method

Maps the end of the tracking span to the specified snapshot of its text buffer.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaração
Function GetEndPoint ( _
    snapshot As ITextSnapshot _
) As SnapshotPoint
SnapshotPoint GetEndPoint(
    ITextSnapshot snapshot
)
SnapshotPoint GetEndPoint(
    ITextSnapshot^ snapshot
)
abstract GetEndPoint : 
        snapshot:ITextSnapshot -> SnapshotPoint 
function GetEndPoint(
    snapshot : ITextSnapshot
) : SnapshotPoint

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.SnapshotPoint
A SnapshotPoint of the specified snapshot.

Exceptions

Exception Condition
ArgumentNullException

snapshot is nulla null reference (Nothing in Visual Basic).

ArgumentException

snapshot is not a snapshot of TextBuffer.

.NET Framework Security

See Also

Reference

ITrackingSpan Interface

Microsoft.VisualStudio.Text Namespace