次の方法で共有


ITextViewLine.GetCharacterBounds Method (SnapshotPoint)

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

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'宣言
Function GetCharacterBounds ( _
    bufferPosition As SnapshotPoint _
) As TextBounds
TextBounds GetCharacterBounds(
    SnapshotPoint bufferPosition
)
TextBounds GetCharacterBounds(
    SnapshotPoint bufferPosition
)
abstract GetCharacterBounds : 
        bufferPosition:SnapshotPoint -> TextBounds 
function GetCharacterBounds(
    bufferPosition : SnapshotPoint
) : TextBounds

Parameters

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

See Also

Reference

ITextViewLine Interface

GetCharacterBounds Overload

Microsoft.VisualStudio.Text.Formatting Namespace