ITextSnapshot::CreateTrackingSpan Method (Int32, Int32, SpanTrackingMode)

 

Creates a ITrackingSpan in this snapshot.

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

ITrackingSpan^ CreateTrackingSpan(
	int start,
	int length,
	SpanTrackingMode trackingMode
)

Parameters

start
Type: System::Int32

The starting position of the tracking span.

length
Type: System::Int32

The length of the tracking span.

trackingMode
Type: Microsoft.VisualStudio.Text::SpanTrackingMode

How the tracking span should react to changes at its boundaries.

Exception Condition
ArgumentOutOfRangeException

start is negative or greater than Length, or length is negative, or start plus length is less than start.

Return to top
Show: