Back to Devexpress

Document.TrackChanges Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-document-17498f57.md

latest3.5 KB
Original Source

Document.TrackChanges Property

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

Declaration

csharp
DocumentTrackChangesOptions TrackChanges { get; }
vb
ReadOnly Property TrackChanges As DocumentTrackChangesOptions

Property Value

TypeDescription
DocumentTrackChangesOptions

The DocumentTrackChangesOptions object containing Track Changes options.

|

Remarks

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).

csharp
wordProcessor.Document.TrackChanges.Enabled = true;
wordProcessor.Document.TrackChanges.TrackFormatting = false;
wordProcessor.Document.TrackChanges.TrackMoves = false;
vb
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

csharp
//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

vb
'Turn Track Changes on:
Dim documentTrackChangesOptions As DocumentTrackChangesOptions = documentProcessor.Document.TrackChanges
documentTrackChangesOptions.Enabled = True

See Also

Document Interface

Document Members

DevExpress.XtraRichEdit.API.Native Namespace