IBufferGraph::MapDownToBuffer Method (SnapshotSpan, SpanTrackingMode, ITextBuffer^)
Visual Studio 2015
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^ MapDownToBuffer( SnapshotSpan span, SpanTrackingMode trackingMode, ITextBuffer^ targetBuffer )
Parameters
- span
-
Type:
Microsoft.VisualStudio.Text::SnapshotSpan
The span that is to be mapped.
- trackingMode
-
Type:
Microsoft.VisualStudio.Text::SpanTrackingMode
How span is tracked to the current snapshot if necessary.
- targetBuffer
-
Type:
Microsoft.VisualStudio.Text::ITextBuffer^
The buffer to which to map the span.
Return Value
Type: Microsoft.VisualStudio.Text::NormalizedSnapshotSpanCollection^A collection of zero or more snapshot spans in the target buffer to which the span maps.
| Exception | Condition |
|---|---|
| ArgumentNullException | span.Snapshot or targetBuffer is null. |
| ArgumentOutOfRangeException | trackingMode is not a valid SpanTrackingMode. |
Show: