RevisionCollection.RejectAll(Predicate<Revision>) Method
In This Article
Rejects all revisions that meet the specified criteria.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
predicate | Predicate<Revision> | A Predicate |
#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