All docs
V20.1
20.2 (EAP/Beta)
20.1
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+

RevisionCollection.Get(SubDocument) Method

Retrieves all revisions related to the specific document part.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

IEnumerable<Revision> Get(
    SubDocument subDocument
)
Function Get(
    subDocument As SubDocument
) As IEnumerable(Of Revision)

Parameters

Name Type Description
subDocument SubDocument

An object implementing the SubDocument interface that is the target document part (main body, header or footer, text box or comment.

Returns

Type Description
IEnumerable<Revision>

A collection of revisions related to the target SubDocument.

Remarks

The following properties allow you to access a specific document part's SubDocument:

Document Part Property
Main Body RichEditDocumentServer.Document
Header or Footer Section.BeginUpdateHeader
Section.BeginUpdateFooter
Comment Comment.BeginUpdate
Text Box TextBox.Document

The code sample below shows how to get revisions made in the text box:

foreach (Shape shape in documentProcessor.Document.Shapes)
{
    if (shape.TextBox != null)
    {
        var textBoxRevisions = documentRevisions.Get(shape.TextBox.Document);
    }
}
See Also