Expand Minimize

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)

public delegate Span CustomTrackToVersion(
	ITrackingSpan customSpan,
	ITextVersion currentVersion,
	ITextVersion targetVersion,
	Span currentSpan,
	Object customState
)

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.

targetVersion may be earlier than currentVersion.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft