Udostępnij za pośrednictwem


ITextSnapshot.CreateTrackingSpan Method

Definition

Overloads

CreateTrackingSpan(Span, SpanTrackingMode)

Creates a ITrackingSpan against this snapshot.

CreateTrackingSpan(Span, SpanTrackingMode, TrackingFidelityMode)

Creates a ITrackingSpan against this snapshot.

CreateTrackingSpan(Int32, Int32, SpanTrackingMode)

Creates a ITrackingSpan against this snapshot.

CreateTrackingSpan(Int32, Int32, SpanTrackingMode, TrackingFidelityMode)

Creates a ITrackingSpan against this snapshot.

CreateTrackingSpan(Span, SpanTrackingMode)

Creates a ITrackingSpan against this snapshot.

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.

trackingMode
SpanTrackingMode

How the tracking span will react to changes at its boundaries.

Returns

A non-null ITrackingSpan.

Exceptions

The end of the span is greater than the length of the text snapshot.

Applies to

CreateTrackingSpan(Span, SpanTrackingMode, TrackingFidelityMode)

Creates a ITrackingSpan against this snapshot.

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.

trackingMode
SpanTrackingMode

How the tracking span should react to changes at its boundaries.

trackingFidelity
TrackingFidelityMode

The tracking fidelity of the span.

Returns

A non-null ITrackingSpan.

Exceptions

The end of the span is greater than the length of the text snapshot.

Applies to

CreateTrackingSpan(Int32, Int32, SpanTrackingMode)

Creates a ITrackingSpan against this snapshot.

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 tracking span.

length
Int32

The length of the tracking span.

trackingMode
SpanTrackingMode

How the tracking span should react to changes at its boundaries.

Returns

A non-null ITrackingSpan.

Exceptions

start is negative or greater than Length, or length is negative, or start plus length is less than start.

Applies to

CreateTrackingSpan(Int32, Int32, SpanTrackingMode, TrackingFidelityMode)

Creates a ITrackingSpan against this snapshot.

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 tracking span.

length
Int32

The length of the tracking span.

trackingMode
SpanTrackingMode

How the tracking span should react to changes at its boundaries.

trackingFidelity
TrackingFidelityMode

The tracking fidelilty mode.

Returns

A non-null ITrackingSpan..

Exceptions

start is negative or greater than Length, or length is negative, or start plus length is less than start.

Applies to