共用方式為


ITextVersion Interface

Definition

Describes a version of an ITextBuffer. Each application of an ITextEdit to a text buffer generates a new ITextVersion.

public interface class ITextVersion
public interface class ITextVersion
__interface ITextVersion
public interface ITextVersion
type ITextVersion = interface
Public Interface ITextVersion
Derived

Remarks

For more information about text versioning, see the section "A Closer Look at the Text Model and the Text View" in Inside the Editor.

Properties

Changes

Gets the text changes that produce the next version. Returns null if and only if this is the most recent version of its text buffer.

Length

Gets the length in characters of this ITextVersion.

Next

Gets the next ITextVersion. Returns null if and only if this is the most recent version of its text buffer.

ReiteratedVersionNumber

Gets the oldest version number for which all text changes between that version and this version have been canceled out by corresponding undo/redo operations.

TextBuffer

The ITextBuffer to which this ITextVersion applies.

VersionNumber

The version number for this version. It is used for comparisons between versions of the same buffer.

Methods

CreateCustomTrackingSpan(Span, TrackingFidelityMode, Object, CustomTrackToVersion)

Creates a custom ITrackingSpan against this version.

CreateTrackingPoint(Int32, PointTrackingMode, TrackingFidelityMode)

Creates a ITrackingPoint against this version.

CreateTrackingPoint(Int32, PointTrackingMode)

Creates a ITrackingPoint against this version.

CreateTrackingSpan(Int32, Int32, SpanTrackingMode, TrackingFidelityMode)

Creates a ITrackingSpan against this version.

CreateTrackingSpan(Int32, Int32, SpanTrackingMode)

Creates a ITrackingSpan against this version.

CreateTrackingSpan(Span, SpanTrackingMode, TrackingFidelityMode)

Creates a ITrackingSpan against this version.

CreateTrackingSpan(Span, SpanTrackingMode)

Creates a ITrackingSpan against this version.

Applies to