IBufferGraph.MapUpToFirstMatch Method (SnapshotSpan, SpanTrackingMode, Predicate<ITextSnapshot>)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Maps a span in the current snapshot of some buffer that is a member of the buffer graph up to a sequence of spans in a snapshot of some buffer that is selected by a predicate.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
NormalizedSnapshotSpanCollection MapUpToFirstMatch( SnapshotSpan span, SpanTrackingMode trackingMode, Predicate<ITextSnapshot> match )
- Type: Microsoft.VisualStudio.Text.SnapshotSpan
A span in some buffer in the buffer graph.
- Type: Microsoft.VisualStudio.Text.SpanTrackingMode
How span is tracked to the current snapshot if necessary.
Return ValueType: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
A collection of zero or more snapshot spans in the top buffer to which the span maps.
- 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.