다음을 통해 공유


ITextVersion.ReiteratedVersionNumber Property

Definition

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 int ReiteratedVersionNumber { int get(); };
public:
 property int ReiteratedVersionNumber { int get(); };
public int ReiteratedVersionNumber { get; }
member this.ReiteratedVersionNumber : int
Public ReadOnly Property ReiteratedVersionNumber As Integer

Property Value

The oldest version number.

Remarks

If ReiteratedVersionNumber is not equal to VersionNumber, then for every ITextChange not originated by an undo operation between ReiteratedVersionNumber and VersionNumber, there is a corresponding ITextChange originated by an undo operation that cancels it out. So the contents of the two versions are necessarily identical.

Setting this property correctly is the responsibility of the undo system; aside from this property, the text buffer and related classes are unaware of undo and redo.

Note that the ITextVersion objects created through ChangeContentType(IContentType, Object) have no text changes and will therefore keep the ReiteratedVersionNumber of the previous version.

Applies to