Share via


Metodo ITextView.GetTextViewLineContainingBufferPosition

ottiene ITextViewLine contenente la posizione del buffer di testo specificata.

Spazio dei nomi:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Sintassi

'Dichiarazione
Function GetTextViewLineContainingBufferPosition ( _
    bufferPosition As SnapshotPoint _
) As ITextViewLine
ITextViewLine GetTextViewLineContainingBufferPosition(
    SnapshotPoint bufferPosition
)
ITextViewLine^ GetTextViewLineContainingBufferPosition(
    SnapshotPoint bufferPosition
)
abstract GetTextViewLineContainingBufferPosition : 
        bufferPosition:SnapshotPoint -> ITextViewLine
function GetTextViewLineContainingBufferPosition(
    bufferPosition : SnapshotPoint
) : ITextViewLine

Parametri

Valore restituito

Tipo: Microsoft.VisualStudio.Text.Formatting.ITextViewLine
ITextViewLine contenente la posizione del buffer specificata.

Eccezioni

Eccezione Condizione
InvalidOperationException

La visualizzazione non termina l'inizializzazione.

ArgumentOutOfRangeException

bufferPosition non è una posizione del buffer valida.

Note

questo metodo restituisce ITextViewLine se esiste nella visualizzazione. Se la riga non esiste nella cache di righe formattate, verrà formatta e verrà aggiunto alla cache.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ITextView Interfaccia

Spazio dei nomi Microsoft.VisualStudio.Text.Editor