Back to Devexpress

DocumentTrackChangesOptions.Enabled Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-documenttrackchangesoptions.md

latest3.8 KB
Original Source

DocumentTrackChangesOptions.Enabled Property

Specifies whether to keep track of changes made in this document.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
bool Enabled { get; set; }
vb
Property Enabled As Boolean

Property Value

TypeDescription
Boolean

true , to enable tracking changes; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Enabled
Document

.TrackChanges .Enabled

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Enabled 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#L20

csharp
DocumentTrackChangesOptions documentTrackChangesOptions = documentProcessor.Document.TrackChanges;
documentTrackChangesOptions.Enabled = true;
documentTrackChangesOptions.TrackFormatting = true;

winforms-rich-edit-manage-tracked-changes/CS/XtraRichEdit_TrackChanges/Form1.cs#L32

csharp
{
    richEditControl1.Document.TrackChanges.Enabled = true;
    richEditControl1.Document.TrackChanges.TrackFormatting = true;

word-document-api-use-track-changes/VB/word-processing-document-api-track-changes/Program.vb#L17

vb
Dim documentTrackChangesOptions As DocumentTrackChangesOptions = documentProcessor.Document.TrackChanges
documentTrackChangesOptions.Enabled = True
documentTrackChangesOptions.TrackFormatting = True

winforms-rich-edit-manage-tracked-changes/VB/XtraRichEdit_TrackChanges/Form1.vb#L26

vb
Private Sub CreateNewRevision()
    richEditControl1.Document.TrackChanges.Enabled = True
    richEditControl1.Document.TrackChanges.TrackFormatting = True

See Also

DocumentTrackChangesOptions Interface

DocumentTrackChangesOptions Members

DevExpress.XtraRichEdit.API.Native Namespace