ITextVersion.ReiteratedVersionNumber Property

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.

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

Syntax

'Declaration
ReadOnly Property ReiteratedVersionNumber As Integer
int ReiteratedVersionNumber { get; }
property int ReiteratedVersionNumber {
    int get ();
}
abstract ReiteratedVersionNumber : int
function get ReiteratedVersionNumber () : int

Property Value

Type: System.Int32
The oldest version number.

Remarks

If this property is not the same as 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. The ITextVersion objects created through CreateReadOnlyRegionEdit or ChangeContentType have no text changes and will therefore keep the ReiteratedVersionNumber of the previous version.

.NET Framework Security

See Also

Reference

ITextVersion Interface

Microsoft.VisualStudio.Text Namespace