IProjectionSnapshot2::GetMatchingSnapshotInClosure Method (ITextBuffer^)

 

Computes the snapshot of the targetBuffer that is a contributor to this snapshot. If targetBuffer is not in the source closure of this snapshot, return null.

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

ITextSnapshot^ GetMatchingSnapshotInClosure(
	ITextBuffer^ targetBuffer
)

Parameters

targetBuffer
Type: Microsoft.VisualStudio.Text::ITextBuffer^

The target buffer.

Return Value

Type: Microsoft.VisualStudio.Text::ITextSnapshot^

The resulting text snapshot.

Exception Condition
ArgumentNullException

If targetBuffer is null.

Return to top
Show: