Compartilhar via


IProjectionSnapshot.GetMatchingSnapshot Method

Gets the snapshot of the specified text buffer that corresponds to this snapshot.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

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

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.ITextSnapshot
The snapshot of the text buffer, or nulla null reference (Nothing in Visual Basic) if textBuffer is not a text buffer of this projection buffer.

Exceptions

Exception Condition
ArgumentNullException

textBuffer is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

IProjectionSnapshot Interface

Microsoft.VisualStudio.Text.Projection Namespace