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)

public interface ITextVersion

The ITextVersion type exposes the following members.

Public propertyChangesGets the text changes that produce the next version.
Public propertyLengthGets the length in characters of this ITextVersion.
Public propertyNextGets the next ITextVersion.
Public propertyReiteratedVersionNumberGets 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 propertyTextBufferThe ITextBuffer to which this ITextVersion applies.
Public propertyVersionNumberThe version number for this version, used for comparisons between versions of the same buffer.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft