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

Declaration

[ComVisible(true)]
public interface RevisionCollection :
    IEnumerable<Revision>,
    IEnumerable

The following members return RevisionCollection objects:

Remarks

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

Note

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