ITextVersion::CreateTrackingSpan Method (Span, SpanTrackingMode)

 

Creates a ITrackingSpan in this version.

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

ITrackingSpan^ CreateTrackingSpan(
	Span span,
	SpanTrackingMode trackingMode
)

Parameters

span
Type: Microsoft.VisualStudio.Text::Span

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

trackingMode
Type: Microsoft.VisualStudio.Text::SpanTrackingMode

How the ITrackingSpan will react to changes at its boundaries.

Exception Condition
ArgumentOutOfRangeException

span.End is greater than the length of this version, or trackingMode is equal to Custom.

Return to top
Show: