ITrackingPoint::GetCharacter Method (ITextSnapshot^)

 

Maps this tracking point to the specified snapshot and gets the character at that position.

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

wchar_t GetCharacter(
	ITextSnapshot^ snapshot
)

Parameters

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

The snapshot to which to map the position.

Return Value

Type: System::Char

The character at the specified position.

Exception Condition
ArgumentOutOfRangeException

The tracking point is at the end position of the snapshot.

Return to top
Show: