Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    RevisionCollection Interface

    A collection of Revision objects.

    Namespace: DevExpress.XtraRichEdit.API.Native

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

    NuGet Package: DevExpress.RichEdit.Core

    #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