次の方法で共有


CustomTrackToVersion Delegate

Definition

Provides a custom implementation of span tracking. This delegate should be implemented by custom tracking spans.

public delegate Microsoft::VisualStudio::Text::Span CustomTrackToVersion(ITrackingSpan ^ customSpan, ITextVersion ^ currentVersion, ITextVersion ^ targetVersion, Span currentSpan, System::Object ^ customState);
public delegate Microsoft::VisualStudio::Text::Span CustomTrackToVersion(ITrackingSpan ^ customSpan, ITextVersion ^ currentVersion, ITextVersion ^ targetVersion, Span currentSpan, Platform::Object ^ customState);
public delegate Microsoft.VisualStudio.Text.Span CustomTrackToVersion(ITrackingSpan customSpan, ITextVersion currentVersion, ITextVersion targetVersion, Span currentSpan, object customState);
type CustomTrackToVersion = delegate of ITrackingSpan * ITextVersion * ITextVersion * Span * obj -> Span
Public Delegate Function CustomTrackToVersion(customSpan As ITrackingSpan, currentVersion As ITextVersion, targetVersion As ITextVersion, currentSpan As Span, customState As Object) As Span 

Parameters

customSpan
ITrackingSpan

The span to be tracked.

currentVersion
ITextVersion

The version to which currentSpan belongs.

targetVersion
ITextVersion

The version to which currentSpan is to be tracked.

currentSpan
Span

The span to track.

customState
Object

The custom state that was provided when the span was created.

Return Value

The span to which currentSpan tracks.

Remarks

targetVersion may be earlier than currentVersion.

Applies to