ITextSnapshot::CreateTrackingSpan Method (Span, SpanTrackingMode, TrackingFidelityMode)

 

Creates a ITrackingSpan in this snapshot.

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

ITrackingSpan^ CreateTrackingSpan(
	Span span,
	SpanTrackingMode trackingMode,
	TrackingFidelityMode trackingFidelity
)

Parameters

span
Type: Microsoft.VisualStudio.Text::Span

The span of text in this snapshot.

trackingMode
Type: Microsoft.VisualStudio.Text::SpanTrackingMode

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

trackingFidelity
Type: Microsoft.VisualStudio.Text::TrackingFidelityMode

The tracking fidelity of the span.

Exception Condition
ArgumentOutOfRangeException

The end of the span is greater than the length of the text snapshot.

Return to top
Show: