Back to Devexpress

RevisionCollection.AcceptAll(SubDocument) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-revisioncollection-dot-acceptall-x28-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-subdocument-x29.md

latest3.1 KB
Original Source

RevisionCollection.AcceptAll(SubDocument) Method

Accepts all revisions in the specific SubDocument.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void AcceptAll(
    SubDocument subDocument
)
vb
Sub AcceptAll(
    subDocument As SubDocument
)

Parameters

NameTypeDescription
subDocumentSubDocument

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 PartProperty
Main BodyRichEditDocumentServer.Document
Header or FooterSection.BeginUpdateHeader
Section.BeginUpdateFooter
CommentComment.BeginUpdate
Text BoxTextBox.Document

The code sample below shows how to accept all revisions in the first page’s header:

csharp
SubDocument header = documentProcessor.Document.Sections[0].BeginUpdateHeader(HeaderFooterType.First);
documentRevisions.AcceptAll(header);
documentProcessor.Document.Sections[0].EndUpdateHeader(header);
vb
Dim header As SubDocument = documentProcessor.Document.Sections(0).BeginUpdateHeader(HeaderFooterType.First)
documentRevisions.AcceptAll(header)
documentProcessor.Document.Sections(0).EndUpdateHeader(header)

See Also

RevisionCollection Interface

RevisionCollection Members

DevExpress.XtraRichEdit.API.Native Namespace