Format Code Block Dialog
This dialog allows you to insert and edit code blocks in the document.
The dialog can be opened from the Code button in the Insert tab of the RadRichTextBoxRibbonUI or via the in the same option in the right-click menu (context menu) of RadRichTextBox
.
Showing the Dialog Manually
The dialog can be shown by executing the ShowCodeFormattingDialogCommand
. See how to bind the command to an external button in the Commands article.
Executing the show dialog command
this.richTextBox.Commands.ShowCodeFormattingDialogCommand.Execute(null);
ShowCodeFormattingDialog
method of RadRichTextBox
.
Using the show dialog method
this.richTextBox.ShowCodeFormattingDialog();