IBufferGraph.MapDownToSnapshot Method (SnapshotSpan, SpanTrackingMode, ITextSnapshot)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Maps a snapshot span in some buffer in the graph to a sequence of zero or more spans in a buffer that is lower in the graph. Source buffers are considered to be lower than the projection buffers that consume them.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
NormalizedSnapshotSpanCollection MapDownToSnapshot( SnapshotSpan span, SpanTrackingMode trackingMode, ITextSnapshot targetSnapshot )
- Type: Microsoft.VisualStudio.Text.SnapshotSpan
The span that is to be mapped.
- Type: Microsoft.VisualStudio.Text.SpanTrackingMode
How span is tracked to the current snapshot if necessary.
- Type: Microsoft.VisualStudio.Text.ITextSnapshot
The buffer to which to map the span.
Return ValueType: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
A collection of zero or more snapshot spans in the target 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.