ITextViewLine::GetCharacterBounds Method (SnapshotPoint)

 

Calculates the bounds of the character at the specified buffer position.

Namespace:   Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

TextBounds GetCharacterBounds(
	SnapshotPoint bufferPosition
)

Parameters

bufferPosition
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The text buffer-based index of the character.

Exception Condition
ArgumentOutOfRangeException

bufferPosition does not correspond to a position on this line.

Bidirectional text has a leading edge that lies to the right of its trailing edge.

Return to top
Show: