Compartilhar via


CustomTrackToVersion Delegate

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

  • customState
    Type: 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.

See Also

Reference

Microsoft.VisualStudio.Text Namespace