Compartilhar via


ITextVersion Interface

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

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaração
Public Interface ITextVersion
public interface ITextVersion
public interface class ITextVersion
type ITextVersion =  interface end
public interface ITextVersion

The ITextVersion type exposes the following members.

Properties

  Name Description
Public property Changes Gets the text changes that produce the next version.
Public property Length Gets the length in characters of this ITextVersion.
Public property Next Gets the next ITextVersion.
Public property 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.
Public property TextBuffer The ITextBuffer to which this ITextVersion applies.
Public property VersionNumber The version number for this version, used for comparisons between versions of the same buffer.

Top

Methods

  Name Description
Public method CreateCustomTrackingSpan Creates a custom ITrackingSpan in this version.
Public method CreateTrackingPoint(Int32, PointTrackingMode) Creates a ITrackingPoint in this version.
Public method CreateTrackingPoint(Int32, PointTrackingMode, TrackingFidelityMode) Creates a ITrackingPoint in this version.
Public method CreateTrackingSpan(Span, SpanTrackingMode) Creates a ITrackingSpan in this version.
Public method CreateTrackingSpan(Int32, Int32, SpanTrackingMode) Creates a ITrackingSpan in this version.
Public method CreateTrackingSpan(Span, SpanTrackingMode, TrackingFidelityMode) Creates a ITrackingSpan in this version.
Public method CreateTrackingSpan(Int32, Int32, SpanTrackingMode, TrackingFidelityMode) Creates a ITrackingSpan in this version.

Top

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.

See Also

Reference

Microsoft.VisualStudio.Text Namespace