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
customSpan
Type: Microsoft.VisualStudio.Text.ITrackingSpanThe span to be tracked.
currentVersion
Type: Microsoft.VisualStudio.Text.ITextVersionThe version to which currentSpan belongs.
targetVersion
Type: Microsoft.VisualStudio.Text.ITextVersionThe version to which currentSpan is to be tracked.
currentSpan
Type: Microsoft.VisualStudio.Text.SpanThe span to track.
customState
Type: ObjectThe 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.