Back to Devexpress

RevisionCollection.AcceptAll(SubDocument, Predicate<Revision>) Method

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

latest3.1 KB
Original Source

RevisionCollection.AcceptAll(SubDocument, Predicate<Revision>) Method

Accepts all revisions that meet the specified criteria 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,
    Predicate<Revision> predicate
)
vb
Sub AcceptAll(
    subDocument As SubDocument,
    predicate As Predicate(Of Revision)
)

Parameters

NameTypeDescription
subDocumentSubDocument

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

| | predicate | Predicate<Revision> |

A Predicate<T> object that defines a set of criteria for the Revision object.

|

Remarks

Use this AcceptAll method overload to accept 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

See Also

RevisionCollection Interface

RevisionCollection Members

DevExpress.XtraRichEdit.API.Native Namespace