ITrackingPoint::GetPosition Method (ITextSnapshot^)

 

Gets the position of the tracking point in the specified ITextSnapshot.

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

int GetPosition(
	ITextSnapshot^ snapshot
)

Parameters

snapshot
Type: Microsoft.VisualStudio.Text::ITextSnapshot^

The snapshot to which to map the position.

Return Value

Type: System::Int32

A position in the given snapshot.

Exception Condition
ArgumentNullException

snapshot is null.

ArgumentException

snapshot is not a snapshot of TextBuffer.

Return to top
Show: