Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.
Return Value
Type: Microsoft.VisualStudio.Text.ITrackingSpan
A non-null ITrackingSpan.
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentOutOfRangeException | span.End is greater than Length. | 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.