ITextVersion::CreateCustomTrackingSpan Method (Span, TrackingFidelityMode, Object^, CustomTrackToVersion^)

 

Creates a custom ITrackingSpan in this version.

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

ITrackingSpan^ CreateCustomTrackingSpan(
	Span span,
	TrackingFidelityMode trackingFidelity,
	Object^ customState,
	CustomTrackToVersion^ behavior
)

Parameters

span
Type: Microsoft.VisualStudio.Text::Span

The span of text in this snapshot that the ITrackingSpan should represent.

trackingFidelity
Type: Microsoft.VisualStudio.Text::TrackingFidelityMode

The tracking fidelity of the span.

customState
Type: System::Object^

Client-defined state associated with the span.

behavior
Type: Microsoft.VisualStudio.Text::CustomTrackToVersion^

The custom tracking behavior.

Exception Condition
ArgumentOutOfRangeException

span.End is greater than Length.

Return to top
Show: