All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
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.AcceptAll(SubDocument) Method

Accepts all revisions in the specific SubDocument.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

void AcceptAll(
    SubDocument subDocument
)

Parameters

Name Type Description
subDocument SubDocument

A SubDocument object that is the specific document part (main body, header or footer).

Remarks

Use this AcceptAll method overload to accept all revisions in a specific document part (main body, header or footer, comment or text box).

Use the SubDocument.GetSubDocumentType() to determine the type of the current SubDocument.

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

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 accept all revisions in the first page’s header:

SubDocument header = documentProcessor.Document.Sections[0].BeginUpdateHeader(HeaderFooterType.First);
documentRevisions.AcceptAll(header);
documentProcessor.Document.Sections[0].EndUpdateHeader(header);
See Also