IMappingSpan::GetSpans Method (Predicate<ITextBuffer^>^)
Visual Studio 2015
Maps the span to a matching ITextBuffer.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- match
-
Type:
System::Predicate<ITextBuffer^>^
The predicate used to identify the ITextBuffer.
Return Value
Type: Microsoft.VisualStudio.Text::NormalizedSnapshotSpanCollection^A possibly empty collection of spans in the matching buffer.
| Exception | Condition |
|---|---|
| ArgumentNullException | match is null. |
match is called on each text buffer in the buffer graph until it returns true. The predicate will not be called again.
Show: