Skip to main content
All docs
V25.1
  • RevisionCollection.RejectAll(Predicate<Revision>) Method

    Rejects all revisions that meet the specified criteria.

    Namespace: DevExpress.XtraRichEdit.API.Native

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

    NuGet Package: DevExpress.RichEdit.Core

    Declaration

    void RejectAll(
        Predicate<Revision> predicate
    )

    Parameters

    Name Type Description
    predicate Predicate<Revision>

    A Predicate<T> object that defines a set of criteria for the Revision object.

    Remarks

    The code sample below shows how to reject 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.RejectAll(x=> x.Author == "Nancy Davolio" && x.DateTime == dateTime);
    }
    
    See Also