All docs
V19.2
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

RevisionCollection Interface

A collection of Revision objects.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

[ComVisible(true)]
public interface RevisionCollection :
    IEnumerable<Revision>,
    IEnumerable
<ComVisible(True)>
Public Interface RevisionCollection
    Inherits IEnumerable(Of Revision),
             IEnumerable
[ComVisible(true)]
public interface RevisionCollection :
    IEnumerable<Revision>,
    IEnumerable
<ComVisible(True)>
Public Interface RevisionCollection
    Inherits IEnumerable(Of Revision),
             IEnumerable
[ComVisible(true)]
public interface RevisionCollection :
    IEnumerable<Revision>,
    IEnumerable
<ComVisible(True)>
Public Interface RevisionCollection
    Inherits IEnumerable(Of Revision),
             IEnumerable

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);
}
See Also