ITrackingSpan.GetEndPoint(ITextSnapshot) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Maps the end of the tracking span to a particular snapshot of its text buffer.
public:
Microsoft::VisualStudio::Text::SnapshotPoint GetEndPoint(Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot);
public Microsoft.VisualStudio.Text.SnapshotPoint GetEndPoint (Microsoft.VisualStudio.Text.ITextSnapshot snapshot);
abstract member GetEndPoint : Microsoft.VisualStudio.Text.ITextSnapshot -> Microsoft.VisualStudio.Text.SnapshotPoint
Public Function GetEndPoint (snapshot As ITextSnapshot) As SnapshotPoint
Parameters
- snapshot
- ITextSnapshot
The snapshot to which to map the end point.
Returns
A SnapshotPoint of the provided snapshot.
Exceptions
snapshot
is null.
snapshot
is not a snapshot of TextBuffer.