IProjectionSnapshot.GetMatchingSnapshot, méthode

Obtient l'instantané de la mémoire tampon de texte spécifiée qui correspond à cet instantané.

Espace de noms :  Microsoft.VisualStudio.Text.Projection
Assembly :  Microsoft.VisualStudio.Text.Data (dans Microsoft.VisualStudio.Text.Data.dll)

Syntaxe

'Déclaration
Function GetMatchingSnapshot ( _
    textBuffer As ITextBuffer _
) As ITextSnapshot
ITextSnapshot GetMatchingSnapshot(
    ITextBuffer textBuffer
)
ITextSnapshot^ GetMatchingSnapshot(
    ITextBuffer^ textBuffer
)
abstract GetMatchingSnapshot : 
        textBuffer:ITextBuffer -> ITextSnapshot
function GetMatchingSnapshot(
    textBuffer : ITextBuffer
) : ITextSnapshot

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.Text.ITextSnapshot
L'instantané de la mémoire tampon de texte, ou nullune référence null (Nothing en Visual Basic) si textBuffer n'est pas une mémoire tampon de texte de cette mémoire tampon de projection.

Exceptions

Exception Condition
ArgumentNullException

textBuffer a la valeur nullune référence null (Nothing en Visual Basic).

Sécurité .NET Framework

Voir aussi

Référence

IProjectionSnapshot Interface

Microsoft.VisualStudio.Text.Projection, espace de noms