RevisionCollection.RejectAll(SubDocument) Method
Rejects all revisions in the specific SubDocument instance.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
void RejectAll(
SubDocument subDocument
)
#Parameters
Name | Type | Description |
---|---|---|
sub |
Sub |
A Sub |
#Remarks
Use this RejectAll method overload to rejects 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 reject all revisions in the first page’s header:
SubDocument header = documentProcessor.Document.Sections[0].BeginUpdateHeader(HeaderFooterType.First);
documentRevisions.RejectAll(header);
documentProcessor.Document.Sections[0].EndUpdateHeader(header);
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the RejectAll(SubDocument) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.