RevisionCollection.Get(SubDocument) Method
Retrieves all revisions related to the specific document part.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
IEnumerable<Revision> Get(
SubDocument subDocument
)
#Parameters
Name | Type | Description |
---|---|---|
sub |
Sub |
An object implementing the Sub |
#Returns
Type | Description |
---|---|
IEnumerable<Revision> | A collection of revisions related to the target Sub |
#Remarks
The following properties allow you to access a specific document part’s SubDocument:
Document Part | Property |
---|---|
Main Body | Rich |
Header or Footer | Section. Section. |
Comment | Comment. |
Text Box | Text |
The code sample below shows how to get revisions made in the text box:
foreach (Shape shape in documentProcessor.Document.Shapes)
{
if (shape.TextBox != null)
{
var textBoxRevisions = documentRevisions.Get(shape.TextBox.Document);
}
}