RevisionCollection.RejectAll(Predicate<Revision>) Method
Rejects all revisions that meet the specified criteria.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
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