Partilhar via


ITextVersion.CreateTrackingSpan Method

Definition

Overloads

CreateTrackingSpan(Span, SpanTrackingMode)

Creates a ITrackingSpan against this version.

CreateTrackingSpan(Span, SpanTrackingMode, TrackingFidelityMode)

Creates a ITrackingSpan against this version.

CreateTrackingSpan(Int32, Int32, SpanTrackingMode)

Creates a ITrackingSpan against this version.

CreateTrackingSpan(Int32, Int32, SpanTrackingMode, TrackingFidelityMode)

Creates a ITrackingSpan against this version.

CreateTrackingSpan(Span, SpanTrackingMode)

Creates a ITrackingSpan against this version.

public:
 Microsoft::VisualStudio::Text::ITrackingSpan ^ CreateTrackingSpan(Microsoft::VisualStudio::Text::Span span, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode);
public:
 Microsoft::VisualStudio::Text::ITrackingSpan ^ CreateTrackingSpan(Microsoft::VisualStudio::Text::Span span, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode);
Microsoft::VisualStudio::Text::ITrackingSpan CreateTrackingSpan(Microsoft::VisualStudio::Text::Span span, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode);
public Microsoft.VisualStudio.Text.ITrackingSpan CreateTrackingSpan (Microsoft.VisualStudio.Text.Span span, Microsoft.VisualStudio.Text.SpanTrackingMode trackingMode);
abstract member CreateTrackingSpan : Microsoft.VisualStudio.Text.Span * Microsoft.VisualStudio.Text.SpanTrackingMode -> Microsoft.VisualStudio.Text.ITrackingSpan
Public Function CreateTrackingSpan (span As Span, trackingMode As SpanTrackingMode) As ITrackingSpan

Parameters

span
Span

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

trackingMode
SpanTrackingMode

How the ITrackingSpan will react to changes at its boundaries.

Returns

A non-null ITrackingSpan.

Exceptions

span.End is greater than the length of this version, or trackingMode is equal to Custom.

Applies to

CreateTrackingSpan(Span, SpanTrackingMode, TrackingFidelityMode)

Creates a ITrackingSpan against this version.

public:
 Microsoft::VisualStudio::Text::ITrackingSpan ^ CreateTrackingSpan(Microsoft::VisualStudio::Text::Span span, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode, Microsoft::VisualStudio::Text::TrackingFidelityMode trackingFidelity);
public:
 Microsoft::VisualStudio::Text::ITrackingSpan ^ CreateTrackingSpan(Microsoft::VisualStudio::Text::Span span, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode, Microsoft::VisualStudio::Text::TrackingFidelityMode trackingFidelity);
Microsoft::VisualStudio::Text::ITrackingSpan CreateTrackingSpan(Microsoft::VisualStudio::Text::Span span, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode, Microsoft::VisualStudio::Text::TrackingFidelityMode trackingFidelity);
public Microsoft.VisualStudio.Text.ITrackingSpan CreateTrackingSpan (Microsoft.VisualStudio.Text.Span span, Microsoft.VisualStudio.Text.SpanTrackingMode trackingMode, Microsoft.VisualStudio.Text.TrackingFidelityMode trackingFidelity);
abstract member CreateTrackingSpan : Microsoft.VisualStudio.Text.Span * Microsoft.VisualStudio.Text.SpanTrackingMode * Microsoft.VisualStudio.Text.TrackingFidelityMode -> Microsoft.VisualStudio.Text.ITrackingSpan
Public Function CreateTrackingSpan (span As Span, trackingMode As SpanTrackingMode, trackingFidelity As TrackingFidelityMode) As ITrackingSpan

Parameters

span
Span

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

trackingMode
SpanTrackingMode

How the ITrackingSpan will react to changes at its boundaries.

trackingFidelity
TrackingFidelityMode

The tracking fidelity of the span.

Returns

A non-null ITrackingSpan.

Exceptions

span.End is greater than Length, or trackingMode is equal to Custom.

Applies to

CreateTrackingSpan(Int32, Int32, SpanTrackingMode)

Creates a ITrackingSpan against this version.

public:
 Microsoft::VisualStudio::Text::ITrackingSpan ^ CreateTrackingSpan(int start, int length, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode);
public:
 Microsoft::VisualStudio::Text::ITrackingSpan ^ CreateTrackingSpan(int start, int length, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode);
Microsoft::VisualStudio::Text::ITrackingSpan CreateTrackingSpan(int start, int length, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode);
public Microsoft.VisualStudio.Text.ITrackingSpan CreateTrackingSpan (int start, int length, Microsoft.VisualStudio.Text.SpanTrackingMode trackingMode);
abstract member CreateTrackingSpan : int * int * Microsoft.VisualStudio.Text.SpanTrackingMode -> Microsoft.VisualStudio.Text.ITrackingSpan
Public Function CreateTrackingSpan (start As Integer, length As Integer, trackingMode As SpanTrackingMode) As ITrackingSpan

Parameters

start
Int32

The starting position of the ITrackingSpan in this version.

length
Int32

The length of the ITrackingSpan in this version.

trackingMode
SpanTrackingMode

How the ITrackingSpan will react to changes at its boundaries.

Returns

A non-null ITrackingSpan.

Exceptions

start is negative or greater than the length of this version, or length is negative, or start + length is less than start, or trackingMode is equal to Custom.

Applies to

CreateTrackingSpan(Int32, Int32, SpanTrackingMode, TrackingFidelityMode)

Creates a ITrackingSpan against this version.

public:
 Microsoft::VisualStudio::Text::ITrackingSpan ^ CreateTrackingSpan(int start, int length, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode, Microsoft::VisualStudio::Text::TrackingFidelityMode trackingFidelity);
public:
 Microsoft::VisualStudio::Text::ITrackingSpan ^ CreateTrackingSpan(int start, int length, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode, Microsoft::VisualStudio::Text::TrackingFidelityMode trackingFidelity);
Microsoft::VisualStudio::Text::ITrackingSpan CreateTrackingSpan(int start, int length, Microsoft::VisualStudio::Text::SpanTrackingMode trackingMode, Microsoft::VisualStudio::Text::TrackingFidelityMode trackingFidelity);
public Microsoft.VisualStudio.Text.ITrackingSpan CreateTrackingSpan (int start, int length, Microsoft.VisualStudio.Text.SpanTrackingMode trackingMode, Microsoft.VisualStudio.Text.TrackingFidelityMode trackingFidelity);
abstract member CreateTrackingSpan : int * int * Microsoft.VisualStudio.Text.SpanTrackingMode * Microsoft.VisualStudio.Text.TrackingFidelityMode -> Microsoft.VisualStudio.Text.ITrackingSpan
Public Function CreateTrackingSpan (start As Integer, length As Integer, trackingMode As SpanTrackingMode, trackingFidelity As TrackingFidelityMode) As ITrackingSpan

Parameters

start
Int32

The starting position of the ITrackingSpan in this snapshot.

length
Int32

The length of the ITrackingSpan in this snapshot.

trackingMode
SpanTrackingMode

How the ITrackingSpan will react to changes at its boundaries.

trackingFidelity
TrackingFidelityMode

The tracking fidelity mode.

Returns

A non-null ITrackingSpan.

Exceptions

start is negative or greater than Length, or length is negative, or start + length is less than start, or trackingMode is equal to Custom.

Applies to