Skip to main content

RevisionCollection Interface

A collection of Revision objects.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v24.1.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation


public interface RevisionCollection :

The following members return RevisionCollection objects:


Use the Document.Revisions property to access a RevisionCollection instance.


The RevisionCollection is read-only - you cannot add or delete collection items.

The Revision object represents a revision. Use the object’s properties to obtain the revision’s date, author, and type. The Revision.Range property provides access to the document range to which the revision is applied.

You can accept or reject all revisions, or pass a specific Predicate<T> to the AcceptAll or RejectAll method to accept or reject revisions with given parameters.

The code sample below shows how to accept all revisions from a specific author made on the specified date:

using (RichEditDocumentServer wordProcessor = new RichEditDocumentServer())
    DateTime dateTime = new DateTime(2019,9,2);
    wordProcessor.Document.Revisions.AcceptAll(x=> x.Author == "Nancy Davolio" && x.DateTime == dateTime);
See Also