New to Telerik UI for WPFStart a free 30-day trial

Executes the command that toggles the document protection state. This command can enable or disable protection for the document, allowing users to either modify the document content or restrict modifications based on the current state.

Definition

Constructors

C#
public ToggleDocumentProtectionCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

Properties

Gets a value indicating whether the behavior of the command can be executed in a protected document.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Gets a value indicating whether this command can be executed when editing context is read-only. The default implementation returns false.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Performs the execute action specific to the command.

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

The command parameter.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

C#
protected override bool GetToggleState()
Returns:

bool

Overrides: ToggleCommandBase.GetToggleState()

C#
protected override void UpdateSpanStyle()

Overrides: ToggleCommandBase.UpdateSpanStyle()