Opens the code-formatting dialog to insert or edit a code block at the current caret or selection.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ShowCodeFormattingDialogCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseShowCodeFormattingDialogCommand
Implements:
Inherited Members
Constructors
Creates a command that opens the code-formatting dialog for the specified editor.
public ShowCodeFormattingDialogCommand(RadRichTextBox editor)
The editor whose current caret or selection determines the code block context.
Properties
Allows the command's availability to be checked in read-only ranges.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Treats showing the dialog as a deleting operation for protected-range permission checks.
protected override bool IsDeletingCommand { get; }
Overrides:
Methods
Enables the command when at most one selection range is active and the current inline is editable or belongs to a code block.
Opens the code-formatting dialog.
protected override void ExecuteOverride(object parameter)
Not used.
Overrides: