Toggles document protection through the protect or unprotect dialog; documents accepting an empty password can be unprotected directly.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ToggleDocumentProtectionCommand : ToggleCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseToggleCommandBaseToggleDocumentProtectionCommand
Implements:
Inherited Members
Constructors
Creates the command and tracks document-protection changes to update its toggle state.
public ToggleDocumentProtectionCommand(RadRichTextBox editor)
The editor whose document protection is toggled.
Properties
Allows the command to execute while the document is protected.
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }
Overrides:
Allows command availability checks in read-only ranges.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Methods
Shows the protection dialog, or removes protection directly when an empty password is sufficient.
Does not refresh protection state when the current span style changes.
protected override void UpdateSpanStyle()
Overrides: