officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-document-17498f57.md
Provides access to the document’s track changes options.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
DocumentTrackChangesOptions TrackChanges { get; }
ReadOnly Property TrackChanges As DocumentTrackChangesOptions
| Type | Description |
|---|---|
| DocumentTrackChangesOptions |
The DocumentTrackChangesOptions object containing Track Changes options.
|
Use the TrackChanges property to enable or suppress revisions in the document (DocumentTrackChangesOptions.Enabled), and specify what types of markup to show (i.e, hide formatting or move changes).
wordProcessor.Document.TrackChanges.Enabled = true;
wordProcessor.Document.TrackChanges.TrackFormatting = false;
wordProcessor.Document.TrackChanges.TrackMoves = false;
wordProcessor.Document.TrackChanges.Enabled = True
wordProcessor.Document.TrackChanges.TrackFormatting = False
wordProcessor.Document.TrackChanges.TrackMoves = False
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TrackChanges 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#L19
//Turn Track Changes on:
DocumentTrackChangesOptions documentTrackChangesOptions = documentProcessor.Document.TrackChanges;
documentTrackChangesOptions.Enabled = true;
word-document-api-use-track-changes/VB/word-processing-document-api-track-changes/Program.vb#L16
'Turn Track Changes on:
Dim documentTrackChangesOptions As DocumentTrackChangesOptions = documentProcessor.Document.TrackChanges
documentTrackChangesOptions.Enabled = True
See Also