IPersistentSpanFactory::Create Method (SnapshotSpan, SpanTrackingMode)

Visual Studio 2015
 

Creates an IPersistentSpan for a snapshot span on a document that is currently open.

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

IPersistentSpan^ Create(
	SnapshotSpan span,
	SpanTrackingMode trackingMode
)

Parameters

span
Type: Microsoft.VisualStudio.Text::SnapshotSpan

The span as character offsets from the start of the file.

trackingMode
Type: Microsoft.VisualStudio.Text::SpanTrackingMode

The SpanTrackingMode that determines how the tracking span will react to changes at its boundaries.

Return Value

Type: Microsoft.VisualStudio.Text::IPersistentSpan^

The newly created span.

Return to top
Show: