Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

RevisionCollection.AcceptAll(Predicate<Revision>) Method

Accepts all revisions that meet the specified criteria.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v20.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

Declaration

void AcceptAll(
    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 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);
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the AcceptAll(Predicate<Revision>) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also