IMappingSpan::GetSpans Method (Predicate<ITextBuffer^>^)

 

Maps the span to a matching ITextBuffer.

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

NormalizedSnapshotSpanCollection^ GetSpans(
	Predicate<ITextBuffer^>^ match
)

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.

Return to top
Show: