Share via


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)

Syntax

'Declaration
Function CreateTrackingSpan ( _
    span As Span, _
    trackingMode As SpanTrackingMode, _
    trackingFidelity As TrackingFidelityMode _
) As ITrackingSpan
ITrackingSpan CreateTrackingSpan(
    Span span,
    SpanTrackingMode trackingMode,
    TrackingFidelityMode trackingFidelity
)
ITrackingSpan^ CreateTrackingSpan(
    Span span, 
    SpanTrackingMode trackingMode, 
    TrackingFidelityMode trackingFidelity
)
abstract CreateTrackingSpan : 
        span:Span * 
        trackingMode:SpanTrackingMode * 
        trackingFidelity:TrackingFidelityMode -> ITrackingSpan
function CreateTrackingSpan(
    span : Span, 
    trackingMode : SpanTrackingMode, 
    trackingFidelity : TrackingFidelityMode
) : ITrackingSpan

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.ITrackingSpan
A non-null ITrackingSpan.

Exceptions

Exception Condition
ArgumentOutOfRangeException

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

.NET Framework Security

See Also

Reference

ITextSnapshot Interface

CreateTrackingSpan Overload

Microsoft.VisualStudio.Text Namespace