IProjectionSnapshot.GetMatchingSnapshot(ITextBuffer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.