Condividi tramite


ITrackingSpan Interface

Definition

A span of text in an ITextBuffer that grows or shrinks with changes to the text buffer. The span may be empty.

public interface class ITrackingSpan
public interface class ITrackingSpan
__interface ITrackingSpan
public interface ITrackingSpan
type ITrackingSpan = interface
Public Interface ITrackingSpan

Remarks

For information about tracking, see the "Tracking Points and Tracking Spans" section of Inside the Editor.

Properties

TextBuffer

The ITextBuffer to which this tracking span refers.

TrackingFidelity

The TrackingFidelityMode of the tracking span, which determines how it behaves when moving to a previous version or when encountering versions that are replications of previous versions (due to undo or redo).

TrackingMode

The TrackingMode of this tracking span, which determines how it behaves when insertions occur at its edges.

Methods

GetEndPoint(ITextSnapshot)

Maps the end of the tracking span to a particular snapshot of its text buffer.

GetSpan(ITextSnapshot)

Maps the tracking span to a particular snapshot of its text buffer.

GetSpan(ITextVersion)

Maps the TrackingSpan to a particular version of its text buffer.

GetStartPoint(ITextSnapshot)

Maps the start of the tracking span to a particular snapshot of its text buffer.

GetText(ITextSnapshot)

Maps the tracking span to a particular snapshot of its text buffer and gets the text it designates.

Applies to