ITextVersion2 Interface

Definition

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

C++
public interface class ITextVersion2 : Microsoft::VisualStudio::Text::ITextVersion
Implements

Remarks

Any ITextVersion will be upcastable to an ITextVersion2.

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.

(Inherited from ITextVersion)
ImageVersion
Length

Gets the length in characters of this ITextVersion.

(Inherited from ITextVersion)
Next

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

(Inherited from ITextVersion)
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.

(Inherited from ITextVersion)
TextBuffer

The ITextBuffer to which this ITextVersion applies.

(Inherited from ITextVersion)
VersionNumber

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

(Inherited from ITextVersion)

Methods

Applies to

Produkt Verzie
Visual Studio SDK 2017, 2019, 2022