Protect Document Dialogs
These dialogs allow you to protect the document by adding a password or change the edit restrictions.
Protect and Unprotect Document Dialogs
The protect document dialog can be opened from the Protect Document button in the Review tab of the RadRichTextBoxRibbonUI.
If the document is protected with a password, the Protect Document button will open the Unprotect Document dialog.
Editing Restrictions Dialog
This dialog can be opened from the Editing Restrictions button in the Review tab of the RadRichTextBoxRibbonUI.
Showing the Dialogs Manually
The dialog can be shown by executing the following commands:
ToggleDocumentProtectionCommand
ShowChangeEditingPermissionsDialogCommand
See how to bind the commands to external buttons in the Commands article.
Executing the show dialog command
this.richTextBox.Commands.ToggleDocumentProtectionCommand.Execute();
this.richTextBox.Commands.ShowChangeEditingPermissionsDialogCommand.Execute(null);
RadRichTextBox
:
ShowProtectDocumentDialog
ShowUnprotectDocumentDialog
ShowChangeEditingPermissionsDialog
Using the show dialog method
this.richTextBox.ShowProtectDocumentDialog();
this.richTextBox.ShowChangeEditingPermissionsDialog();