Condividi tramite


ITextViewLineCollection.GetCharacterBounds(SnapshotPoint) Method

Definition

Gets the text bounds of the specified text buffer position.

public:
 Microsoft::VisualStudio::Text::Formatting::TextBounds GetCharacterBounds(Microsoft::VisualStudio::Text::SnapshotPoint bufferPosition);
public Microsoft.VisualStudio.Text.Formatting.TextBounds GetCharacterBounds (Microsoft.VisualStudio.Text.SnapshotPoint bufferPosition);
abstract member GetCharacterBounds : Microsoft.VisualStudio.Text.SnapshotPoint -> Microsoft.VisualStudio.Text.Formatting.TextBounds
Public Function GetCharacterBounds (bufferPosition As SnapshotPoint) As TextBounds

Parameters

bufferPosition
SnapshotPoint

The text buffer-based index of the character.

Returns

A rectangular TextBounds structure.

Exceptions

bufferPosition does not correspond to a position on this line.

Applies to