officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-revision-3e417a84.md
Indicates the type of revision.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
RevisionType Type { get; }
ReadOnly Property Type As RevisionType
| Type | Description |
|---|---|
| RevisionType |
One of the RevisionType enumeration values indicating the revision type.
|
Available values:
Show 18 items
| Name | Description |
|---|---|
| Inserted |
Content was inserted.
| | Deleted |
Content was deleted.
| | MovedFrom |
Content was moved from the initial position.
| | MovedTo |
Content was moved to a new position.
| | CharacterPropertyChanged |
One of the character properties was changed.
| | ParagraphPropertyChanged |
One of the paragraph’s properties was changed or the paragraph was converted to a list.
| | SectionPropertyChanged |
One of the section’s properties was changed.
| | TablePropertyChanged |
One of the table’s properties was changed.
| | TableRowPropertyChanged |
One of the table row’s properties was changed.
| | TableCellPropertyChanged |
One of the table cell’s properties was changed.
| | TableCellInserted |
A table cell(s) was inserted.
| | TableCellDeleted |
A table cell(s) was deleted.
| | TableCellsMerged |
Table cells were merged.
| | TableCellsSplit |
Table cells were split into multiple cells.
| | CharacterStyleDefinitionChanged |
A character style was changed.
| | ParagraphStyleDefinitionChanged |
A paragraph style was changed.
| | TableRowInserted |
Table row was inserted.
| | TableRowDeleted |
Table row was deleted.
|
Use the Type property to determine the type of revision.
Note
You cannot create the following revision types via the Rich Text Editor UI:
The RichEditControl and RichEditDocumentServer save these property values to a document. This allows you to open the document in Microsoft® Word® or another word processing application.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Type property.
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.
word-document-api-use-track-changes/CS/word-processing-document-api-track-changes/Program.cs#L48
//Accept all format changes:
documentRevisions.AcceptAll(x => x.Type == RevisionType.CharacterPropertyChanged || x.Type == RevisionType.ParagraphPropertyChanged || x.Type == RevisionType.SectionPropertyChanged);
winforms-rich-edit-manage-tracked-changes/CS/XtraRichEdit_TrackChanges/Form1.cs#L59
//Accept all format changes:
documentRevisions.AcceptAll(x => x.Type == RevisionType.CharacterPropertyChanged || x.Type == RevisionType.ParagraphPropertyChanged || x.Type == RevisionType.SectionPropertyChanged);
wpf-richedit-manage-tracked-changes/CS/DXRichEdit_TrackChanges/MainWindow.xaml.cs#L42
//Accept all format changes:
documentRevisions.AcceptAll(x => x.Type == RevisionType.CharacterPropertyChanged || x.Type == RevisionType.ParagraphPropertyChanged || x.Type == RevisionType.SectionPropertyChanged);
}
word-document-api-use-track-changes/VB/word-processing-document-api-track-changes/Program.vb#L46
'Accept all format changes:
documentRevisions.AcceptAll(Function(x) x.Type = RevisionType.CharacterPropertyChanged OrElse x.Type = RevisionType.ParagraphPropertyChanged OrElse x.Type = RevisionType.SectionPropertyChanged)
winforms-rich-edit-manage-tracked-changes/VB/XtraRichEdit_TrackChanges/Form1.vb#L50
'Accept all format changes:
documentRevisions.AcceptAll(Function(x) x.Type = RevisionType.CharacterPropertyChanged OrElse x.Type = RevisionType.ParagraphPropertyChanged OrElse x.Type = RevisionType.SectionPropertyChanged)
End Sub
wpf-richedit-manage-tracked-changes/VB/DXRichEdit_TrackChanges/MainWindow.xaml.vb#L35
'Accept all format changes:
documentRevisions.AcceptAll(Function(x) x.Type = RevisionType.CharacterPropertyChanged OrElse x.Type = RevisionType.ParagraphPropertyChanged OrElse x.Type = RevisionType.SectionPropertyChanged)
End Sub
See Also