IPersistentSpanFactory::Create Method (String^, Int32, Int32, Int32, Int32, 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(
	String^ filePath,
	int startLine,
	int startIndex,
	int endLine,
	int endIndex,
	SpanTrackingMode trackingMode
)

Parameters

filePath
Type: System::String^

The name of the file that contains the span.

startLine
Type: System::Int32

The line number of the start point.

startIndex
Type: System::Int32

The offset from the start of the line that contains the start point.

endLine
Type: System::Int32

The line number of the end point.

endIndex
Type: System::Int32

The offset from the start of the line that contains the end point.

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: