Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class RichTextBoxCommandBase : ICommand
Inheritance: objectRichTextBoxCommandBase
Derived Classes:
Implements:
Constructors
Properties
Gets the associated rich text box.
public RadRichTextBox AssociatedRichTextBox { get; }
The associated rich text box.
Gets a value indicating whether the behavior of the command can be executed in a protected document.
protected virtual CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }
Gets a value indicating whether this command can be executed when RadRichTextBox is read-only. The default implementation returns false.
protected virtual bool CanExecuteInReadOnlyMode { get; }
true if this command preserves document's content; otherwise, false.
Gets a value indicating whether this command can be executed when editing context is read-only. The default implementation returns false.
protected virtual bool CanExecuteInReadOnlyRange { get; }
Gets or sets a value indicating whether the command is enabled.
public bool Enabled { get; set; }
protected virtual bool IsDeletingCommand { get; }
protected virtual bool ShouldFocusCaretAfterExecute { get; }
Gets the supported CommandTargets for the command.
protected virtual CommandTargets SupportedTargets { get; }
Methods
public void Execute()
Performs the execute action specific to the command.
protected abstract void ExecuteOverride(object parameter)
The command parameter.
protected void OnCanExecuteChanged()
protected virtual void UpdateSectionStyle()
protected virtual void UpdateSpanStyle()
Events
public event EventHandler CanExecuteChanged
Implements: