IProjectionSnapshot2::GetMatchingSnapshotInClosure Method (Predicate<ITextBuffer^>^)

 

For each snapshot in the source closure of this snapshot, call the match predicate on the corresponding text buffer, and return the first source snapshot for which it returns true. The order in which the source snapshots are visited is undefined.

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

ITextSnapshot^ GetMatchingSnapshotInClosure(
	Predicate<ITextBuffer^>^ match
)

Parameters

match
Type: System::Predicate<ITextBuffer^>^

The predicate for matching.

Return Value

Type: Microsoft.VisualStudio.Text::ITextSnapshot^

The resulting text snapshot.

Exception Condition
ArgumentNullException

if match is null.

Return to top
Show: