Compartilhar via


IProjectionSnapshot.GetMatchingSnapshot(ITextBuffer) Method

Definition

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

public:
 Microsoft::VisualStudio::Text::ITextSnapshot ^ GetMatchingSnapshot(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public:
 Microsoft::VisualStudio::Text::ITextSnapshot ^ GetMatchingSnapshot(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
Microsoft::VisualStudio::Text::ITextSnapshot GetMatchingSnapshot(Microsoft::VisualStudio::Text::ITextBuffer const & textBuffer);
public Microsoft.VisualStudio.Text.ITextSnapshot GetMatchingSnapshot (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
abstract member GetMatchingSnapshot : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.ITextSnapshot
Public Function GetMatchingSnapshot (textBuffer As ITextBuffer) As ITextSnapshot

Parameters

textBuffer
ITextBuffer

Returns

The snapshot of the text buffer. Returns null if textBuffer is not a text buffer of this projection buffer.

Exceptions

textBuffer is null.

Applies to