Compartilhar via


Método ITextViewLineCollection.GetCharacterBounds

Obtém os limites do texto da posição do buffer de texto especificado.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (em Microsoft.VisualStudio.Text.UI.dll)

Sintaxe

'Declaração
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

Parâmetros

Valor de retorno

Tipo: Microsoft.VisualStudio.Text.Formatting.TextBounds
Um retangular TextBounds estrutura.

Exceções

Exceção Condição
ArgumentOutOfRangeException

bufferPositionnão corresponde a uma posição nessa linha.

Segurança do .NET Framework

Consulte também

Referência

ITextViewLineCollection Interface

Namespace Microsoft.VisualStudio.Text.Editor