IProjectionSnapshot::GetMatchingSnapshot Method (ITextBuffer^)

 

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)

ITextSnapshot^ GetMatchingSnapshot(
	ITextBuffer^ textBuffer
)

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.

Return to top
Show: