ITextViewLine.GetCharacterBounds, méthode (VirtualSnapshotPoint)

Calcule les limites du caractère à la position de la mémoire tampon spécifiée.

Espace de noms :  Microsoft.VisualStudio.Text.Formatting
Assembly :  Microsoft.VisualStudio.Text.UI (dans Microsoft.VisualStudio.Text.UI.dll)

Syntaxe

'Déclaration
Function GetCharacterBounds ( _
    bufferPosition As VirtualSnapshotPoint _
) As TextBounds
TextBounds GetCharacterBounds(
    VirtualSnapshotPoint bufferPosition
)
TextBounds GetCharacterBounds(
    VirtualSnapshotPoint bufferPosition
)
abstract GetCharacterBounds : 
        bufferPosition:VirtualSnapshotPoint -> TextBounds
function GetCharacterBounds(
    bufferPosition : VirtualSnapshotPoint
) : TextBounds

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.Text.Formatting.TextBounds
Structure TextBounds.

Exceptions

Exception Condition
ArgumentOutOfRangeException

bufferPosition ne correspond pas à une position sur cette ligne.

Notes

Le texte bidirectionnel a un bord de tête qui repose à droite de son bord de fin.

Sécurité .NET Framework

Voir aussi

Référence

ITextViewLine Interface

GetCharacterBounds, surcharge

Microsoft.VisualStudio.Text.Formatting, espace de noms