Compartir a través de


IBufferGraph.CreateMappingSpan(SnapshotSpan, SpanTrackingMode) Method

Definition

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.

Applies to