Freigeben über


ITextViewLine.GetCharacterBounds-Methode (SnapshotPoint)

Berechnet die Grenzen des Zeichens an der angegebenen Pufferposition.

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

Syntax

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

Parameter

Rückgabewert

Typ: Microsoft.VisualStudio.Text.Formatting.TextBounds
Eine TextBounds-Struktur.

Ausnahmen

Ausnahme Bedingung
ArgumentOutOfRangeException

bufferPosition entspricht keiner Position in dieser Zeile.

Hinweise

Bidirektionaler Text besitzt einen führenden Rand, der auf der rechten Seite ihrer Hinterkante befindet.

.NET Framework-Sicherheit

Siehe auch

Referenz

ITextViewLine Schnittstelle

GetCharacterBounds-Überladung

Microsoft.VisualStudio.Text.Formatting-Namespace