ITextViewLine.GetCharacterBounds Method

Definition

Overloads

GetCharacterBounds(SnapshotPoint)

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

GetCharacterBounds(VirtualSnapshotPoint)

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

GetCharacterBounds(SnapshotPoint)

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

C++
public:
 Microsoft::VisualStudio::Text::Formatting::TextBounds GetCharacterBounds(Microsoft::VisualStudio::Text::SnapshotPoint bufferPosition);

Parameters

bufferPosition
SnapshotPoint

The text buffer-based index of the character.

Returns

A TextBounds structure.

Exceptions

bufferPosition does not correspond to a position on this line.

Remarks

Bi-directional text will have a leading edge that lies to the right of its trailing edge.

Applies to

Visual Studio SDK 2022 i druge verzije
Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022

GetCharacterBounds(VirtualSnapshotPoint)

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

C++
public:
 Microsoft::VisualStudio::Text::Formatting::TextBounds GetCharacterBounds(Microsoft::VisualStudio::Text::VirtualSnapshotPoint bufferPosition);

Parameters

bufferPosition
VirtualSnapshotPoint

The text buffer-based index of the character.

Returns

A TextBounds structure.

Exceptions

bufferPosition does not correspond to a position on this line.

Remarks

Bi-directional text will have a leading edge that lies to the right of its trailing edge.

Applies to

Visual Studio SDK 2022 i druge verzije
Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022