ITextView.GetTextViewLineContainingBufferPosition, méthode

Obtient l'élément ITextViewLine contenant la position de mémoire tampon de texte spécifiée.

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

Syntaxe

'Déclaration
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

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.Text.Formatting.ITextViewLine
Élément ITextViewLine contenant la position de mémoire tampon spécifiée.

Exceptions

Exception Condition
InvalidOperationException

La vue n'a pas complété l'initialisation.

ArgumentOutOfRangeException

bufferPosition n'est pas une position dans la mémoire tampon valide.

Notes

Cette méthode retourne ITextViewLine si elle existe dans la vue. Si la ligne n'existe pas dans le cache de lignes mises en forme, elle sera mise en forme et ajoutée dans le cache.

Sécurité .NET Framework

Voir aussi

Référence

ITextView Interface

Microsoft.VisualStudio.Text.Editor, espace de noms