New to Telerik UI for WinForms? Start a free 30-day trial

Toggles whether subsequent edits in the associated document are recorded as revisions.

Definition

Constructors

Creates the toggle command for the specified editor.

C#
public ToggleTrackChangesCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose tracked-changes setting is toggled.

Properties

Allows the command to execute while document protection is enforced.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Allows command availability checks in read-only ranges.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Inverts the editor's tracked-changes setting.

C#
protected override void ExecuteOverride(object parameter)
Parameters:parameterobject

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Gets whether the associated editor currently records edits as revisions.

C#
protected override bool GetToggleState()
Returns:

bool

true when tracking is enabled; otherwise, false.

Overrides: ToggleCommandBase.GetToggleState()