Share via


ITextVersion.CreateCustomTrackingSpan Method

Creates a custom ITrackingSpan in this version.

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

Syntax

'Declaration
Function CreateCustomTrackingSpan ( _
    span As Span, _
    trackingFidelity As TrackingFidelityMode, _
    customState As Object, _
    behavior As CustomTrackToVersion _
) As ITrackingSpan
ITrackingSpan CreateCustomTrackingSpan(
    Span span,
    TrackingFidelityMode trackingFidelity,
    Object customState,
    CustomTrackToVersion behavior
)
ITrackingSpan^ CreateCustomTrackingSpan(
    Span span, 
    TrackingFidelityMode trackingFidelity, 
    Object^ customState, 
    CustomTrackToVersion^ behavior
)
abstract CreateCustomTrackingSpan : 
        span:Span * 
        trackingFidelity:TrackingFidelityMode * 
        customState:Object * 
        behavior:CustomTrackToVersion -> ITrackingSpan 
function CreateCustomTrackingSpan(
    span : Span, 
    trackingFidelity : TrackingFidelityMode, 
    customState : Object, 
    behavior : CustomTrackToVersion
) : ITrackingSpan

Parameters

  • customState
    Type: System.Object
    Client-defined state associated with the span.

Return Value

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

Exceptions

Exception Condition
ArgumentOutOfRangeException

span.End is greater than Length.

.NET Framework Security

See Also

Reference

ITextVersion Interface

Microsoft.VisualStudio.Text Namespace