New to Telerik UI for WinForms? Start a free 30-day trial

Represents a grouped tracked change and exposes its document extent and affected elements.

Definition

Namespace:Telerik.WinForms.Documents.Model.Revisions

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class Revision

Inheritance: objectRevision

Constructors

Initializes an empty revision of the specified category.

C#
public Revision(RevisionType type)
Parameters:typeRevisionType

The category that determines how revision data is interpreted.

Properties

Gets whether this revision has no backing data for its Type.

C#
public bool IsEmpty { get; }

Gets the elements represented by this revision: range starts, formatted elements, table rows, or a paragraph, according to Type. Returns null when no backing collection or paragraph exists.

C#
public IEnumerable<DocumentElement> RevisionElements { get; }

Gets the revision metadata from the first backing range, element, row, or paragraph, according to Type. Returns null when no backing data is available.

C#
public RevisionInfo RevisionInfo { get; }

Gets the document range derived from the markers or elements represented by this revision. For paragraph revisions, the range is a position at the paragraph's end.

C#
public SelectionRange SelectionRange { get; }

Gets the category used to interpret this revision's backing elements.

C#
public RevisionType Type { get; }