Metodo IWpfTextViewLineCollection.GetTextViewLineContainingBufferPosition
ottiene IWpfTextViewLine contenente la posizione del buffer di testo specificata.
Spazio dei nomi: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Sintassi
'Dichiarazione
Function GetTextViewLineContainingBufferPosition ( _
bufferPosition As SnapshotPoint _
) As IWpfTextViewLine
IWpfTextViewLine GetTextViewLineContainingBufferPosition(
SnapshotPoint bufferPosition
)
IWpfTextViewLine^ GetTextViewLineContainingBufferPosition(
SnapshotPoint bufferPosition
)
abstract GetTextViewLineContainingBufferPosition :
bufferPosition:SnapshotPoint -> IWpfTextViewLine
function GetTextViewLineContainingBufferPosition(
bufferPosition : SnapshotPoint
) : IWpfTextViewLine
Parametri
bufferPosition
Tipo: Microsoft.VisualStudio.Text.SnapshotPointLa posizione del buffer di testo utilizzata per individuare una riga di testo.
Valore restituito
Tipo: Microsoft.VisualStudio.Text.Formatting.IWpfTextViewLine
ITextViewLine che contiene il percorso, o nullriferimento null (Nothing in Visual Basic) se non esiste.
Eccezioni
Eccezione | Condizione |
---|---|
ArgumentOutOfRangeException | bufferPosition non è una posizione del buffer valida. |
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.