Udostępnij za pośrednictwem


ITextVersion.CreateCustomTrackingSpan Method

Definition

Creates a custom ITrackingSpan against this version.

public:
 Microsoft::VisualStudio::Text::ITrackingSpan ^ CreateCustomTrackingSpan(Microsoft::VisualStudio::Text::Span span, Microsoft::VisualStudio::Text::TrackingFidelityMode trackingFidelity, System::Object ^ customState, Microsoft::VisualStudio::Text::CustomTrackToVersion ^ behavior);
public:
 Microsoft::VisualStudio::Text::ITrackingSpan ^ CreateCustomTrackingSpan(Microsoft::VisualStudio::Text::Span span, Microsoft::VisualStudio::Text::TrackingFidelityMode trackingFidelity, Platform::Object ^ customState, Microsoft::VisualStudio::Text::CustomTrackToVersion ^ behavior);
public Microsoft.VisualStudio.Text.ITrackingSpan CreateCustomTrackingSpan (Microsoft.VisualStudio.Text.Span span, Microsoft.VisualStudio.Text.TrackingFidelityMode trackingFidelity, object customState, Microsoft.VisualStudio.Text.CustomTrackToVersion behavior);
abstract member CreateCustomTrackingSpan : Microsoft.VisualStudio.Text.Span * Microsoft.VisualStudio.Text.TrackingFidelityMode * obj * Microsoft.VisualStudio.Text.CustomTrackToVersion -> Microsoft.VisualStudio.Text.ITrackingSpan
Public Function CreateCustomTrackingSpan (span As Span, trackingFidelity As TrackingFidelityMode, customState As Object, behavior As CustomTrackToVersion) As ITrackingSpan

Parameters

span
Span

The span of text in this snapshot that the ITrackingSpan should represent.

trackingFidelity
TrackingFidelityMode

The tracking fidelity of the span.

customState
Object

Client-defined state associated with the span.

behavior
CustomTrackToVersion

The custom tracking behavior.

Returns

A non-null ITrackingSpan.

Exceptions

span.End is greater than Length.

Applies to