ITextViewLineCollection::GetCharacterBounds Method (SnapshotPoint)

 

Gets the text bounds of the specified text buffer position.

Namespace:   Microsoft.VisualStudio.Text.Editor
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.

Return Value

Type: Microsoft.VisualStudio.Text.Formatting::TextBounds

A rectangular TextBounds structure.

Exception Condition
ArgumentOutOfRangeException

bufferPosition does not correspond to a position on this line.

Return to top
Show: