ITextViewLine.GetExtendedCharacterBounds Method

Definition

Overloads

GetExtendedCharacterBounds(SnapshotPoint)

Calculates the bounds of the character at the specified buffer position, including any adjacent space-negotiating adornments.

GetExtendedCharacterBounds(VirtualSnapshotPoint)

Calculates the bounds of the character at the specified virtual buffer position, including any adjacent space-negotiating adornments.

GetExtendedCharacterBounds(SnapshotPoint)

Calculates the bounds of the character at the specified buffer position, including any adjacent space-negotiating adornments.

C++
public:
 Microsoft::VisualStudio::Text::Formatting::TextBounds GetExtendedCharacterBounds(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 a ďalšie verzie
Produkt Verzie
Visual Studio SDK 2015, 2017, 2019, 2022

GetExtendedCharacterBounds(VirtualSnapshotPoint)

Calculates the bounds of the character at the specified virtual buffer position, including any adjacent space-negotiating adornments.

C++
public:
 Microsoft::VisualStudio::Text::Formatting::TextBounds GetExtendedCharacterBounds(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 a ďalšie verzie
Produkt Verzie
Visual Studio SDK 2015, 2017, 2019, 2022