Udostępnij za pośrednictwem


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.

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 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

GetCharacterBounds(VirtualSnapshotPoint)

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

public:
 Microsoft::VisualStudio::Text::Formatting::TextBounds GetCharacterBounds(Microsoft::VisualStudio::Text::VirtualSnapshotPoint bufferPosition);
public Microsoft.VisualStudio.Text.Formatting.TextBounds GetCharacterBounds (Microsoft.VisualStudio.Text.VirtualSnapshotPoint bufferPosition);
abstract member GetCharacterBounds : Microsoft.VisualStudio.Text.VirtualSnapshotPoint -> Microsoft.VisualStudio.Text.Formatting.TextBounds
Public Function GetCharacterBounds (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