IProjectionSnapshot::GetMatchingSnapshot Method (ITextBuffer^)
Visual Studio 2015
Gets the snapshot of the specified text buffer that corresponds to this snapshot.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- textBuffer
-
Type:
Microsoft.VisualStudio.Text::ITextBuffer^
The text buffer.
Return Value
Type: Microsoft.VisualStudio.Text::ITextSnapshot^The snapshot of the text buffer, or null if textBuffer is not a text buffer of this projection buffer.
| Exception | Condition |
|---|---|
| ArgumentNullException | textBuffer is null. |
Show: