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)
Syntax
'Declaration
Function GetMatchingSnapshotInClosure ( _
match As Predicate(Of ITextBuffer) _
) As ITextSnapshot
ITextSnapshot GetMatchingSnapshotInClosure(
Predicate<ITextBuffer> match
)
ITextSnapshot^ GetMatchingSnapshotInClosure(
Predicate<ITextBuffer^>^ match
)
abstract GetMatchingSnapshotInClosure :
match:Predicate<ITextBuffer> -> ITextSnapshot
function GetMatchingSnapshotInClosure(
match : Predicate<ITextBuffer>
) : ITextSnapshot
Parameters
match
Type: Predicate<ITextBuffer>The predicate for matching.
Return Value
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The resulting text snapshot.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | if match is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IProjectionSnapshot2 Interface