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.
Provides a custom implementation of span tracking. This delegate should be implemented by custom tracking spans.
Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Delegate Function CustomTrackToVersion ( _
    customSpan As ITrackingSpan, _
    currentVersion As ITextVersion, _
    targetVersion As ITextVersion, _
    currentSpan As Span, _
    customState As Object _
) As Span
public delegate Span CustomTrackToVersion(
    ITrackingSpan customSpan,
    ITextVersion currentVersion,
    ITextVersion targetVersion,
    Span currentSpan,
    Object customState
)
public delegate Span CustomTrackToVersion(
    ITrackingSpan^ customSpan, 
    ITextVersion^ currentVersion, 
    ITextVersion^ targetVersion, 
    Span currentSpan, 
    Object^ customState
)
type CustomTrackToVersion = 
    delegate of 
        customSpan:ITrackingSpan * 
        currentVersion:ITextVersion * 
        targetVersion:ITextVersion * 
        currentSpan:Span * 
        customState:Object -> Span
JScript does not support delegates.
Parameters
- customSpan
 Type: Microsoft.VisualStudio.Text.ITrackingSpan
 The span to be tracked.
- currentVersion
 Type: Microsoft.VisualStudio.Text.ITextVersion
 The version to which currentSpan belongs.
- targetVersion
 Type: Microsoft.VisualStudio.Text.ITextVersion
 The version to which currentSpan is to be tracked.
- currentSpan
 Type: Microsoft.VisualStudio.Text.Span
 The span to track.
- customState
 Type: System.Object
 The custom state that was provided when the span was created.
Return Value
Type: Microsoft.VisualStudio.Text.Span
The span to which currentSpan tracks.
Remarks
targetVersion may be earlier than currentVersion.