Udostępnij za pośrednictwem


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.

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

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

GetExtendedCharacterBounds(VirtualSnapshotPoint)

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

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

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