Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Calculates the bounds of the character at the specified virtual buffer position, including any adjacent space-negotiating adornments.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function GetExtendedCharacterBounds ( _
bufferPosition As VirtualSnapshotPoint _
) As TextBounds
TextBounds GetExtendedCharacterBounds(
VirtualSnapshotPoint bufferPosition
)
TextBounds GetExtendedCharacterBounds(
VirtualSnapshotPoint bufferPosition
)
abstract GetExtendedCharacterBounds :
bufferPosition:VirtualSnapshotPoint -> TextBounds
function GetExtendedCharacterBounds(
bufferPosition : VirtualSnapshotPoint
) : TextBounds
Parameters
- bufferPosition
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPoint
The text buffer-based index of the character.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting.TextBounds
A TextBounds structure.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | bufferPosition does not correspond to a position on this line. |
Remarks
Bidirectional text has a leading edge that lies to the right of its trailing edge.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.