IBufferGraph.CreateMappingSpan Method (SnapshotSpan, SpanTrackingMode)

 

Initializes a new instance of a IMappingSpan.

Namespace:   Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

IMappingSpan CreateMappingSpan(
	SnapshotSpan span,
	SpanTrackingMode trackingMode
)

Parameters

span
Type: Microsoft.VisualStudio.Text.SnapshotSpan

A SnapshotSpan in one of the buffers of the graph.

trackingMode
Type: Microsoft.VisualStudio.Text.SpanTrackingMode

How to track the span.

Return Value

Type: Microsoft.VisualStudio.Text.IMappingSpan

A IMappingSpan that can track within its buffer and map within the graph.

Return to top
Show: