RevisionCollection Interface
A collection of Revision objects.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v22.1.Core.dll
Declaration
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);
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the RevisionCollection interface.
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.