RevisionCollection.AcceptAll(SubDocument) Method
In This Article
Accepts all revisions in the specific SubDocument.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
void AcceptAll(
SubDocument subDocument
)
#Parameters
Name | Type | Description |
---|---|---|
sub |
Sub |
A Sub |
#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 | Rich |
Header or Footer | Section. Section. |
Comment | Comment. |
Text Box | Text |
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