Partager via


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)

Syntax

'Déclaration
Function CreateTrackingSpan ( _
    span As Span, _
    trackingMode As SpanTrackingMode _
) As ITrackingSpan
ITrackingSpan CreateTrackingSpan(
    Span span,
    SpanTrackingMode trackingMode
)
ITrackingSpan^ CreateTrackingSpan(
    Span span, 
    SpanTrackingMode trackingMode
)
abstract CreateTrackingSpan : 
        span:Span * 
        trackingMode:SpanTrackingMode -> ITrackingSpan 
function CreateTrackingSpan(
    span : Span, 
    trackingMode : SpanTrackingMode
) : ITrackingSpan

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentOutOfRangeException

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

.NET Framework Security

See Also

Reference

ITextVersion Interface

CreateTrackingSpan Overload

Microsoft.VisualStudio.Text Namespace