IBufferGraph.CreateMappingSpan(SnapshotSpan, SpanTrackingMode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of a IMappingSpan.
public:
Microsoft::VisualStudio::Text::IMappingSpan ^ CreateMappingSpan(Microsoft::VisualStudio::Text::SnapshotSpan span, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode);
Microsoft::VisualStudio::Text::IMappingSpan CreateMappingSpan(Microsoft::VisualStudio::Text::SnapshotSpan span, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode);
public Microsoft.VisualStudio.Text.IMappingSpan CreateMappingSpan (Microsoft.VisualStudio.Text.SnapshotSpan span, Microsoft.VisualStudio.Text.SpanTrackingMode trackingMode);
abstract member CreateMappingSpan : Microsoft.VisualStudio.Text.SnapshotSpan * Microsoft.VisualStudio.Text.SpanTrackingMode -> Microsoft.VisualStudio.Text.IMappingSpan
Public Function CreateMappingSpan (span As SnapshotSpan, trackingMode As SpanTrackingMode) As IMappingSpan
Parameters
- span
- SnapshotSpan
A SnapshotSpan in one of the buffers of the graph.
- trackingMode
- SpanTrackingMode
How to track the span.
Returns
A IMappingSpan that can track within its buffer and map within the graph.