Deletes a code block identified by the command parameter or by the current caret or selection.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DeleteCodeBlockCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseDeleteCodeBlockCommand
Implements:
Inherited Members
Constructors
Creates a command that deletes code blocks in the specified editor.
public DeleteCodeBlockCommand(RadRichTextBox editor)
The editor whose code block may be deleted.
Properties
Includes read-only ranges in the command-availability check; read-only context alone does not disable this command.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Treats code-block deletion as a content-removing operation for protected-range permission checks.
protected override bool IsDeletingCommand { get; }
Overrides:
Methods
Returns whether the current selection context contains a deletable code block.
Deletes the supplied code block, or resolves the block containing the caret or selection when no block is supplied.
protected override void ExecuteOverride(object parameter)
An optional CodeAnnotationRangeStart identifying the block to delete.
Overrides: