RevisionCollection.AcceptAll(SubDocument) Method
Accepts all revisions in the specific SubDocument.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
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);