Represents a command that can change the state of the format painter.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ChangeFormatPainterStateCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseChangeFormatPainterStateCommand
Implements:
Inherited Members
Constructors
Initializes a new instance of the ChangeFormatPainterStateCommand class.
public ChangeFormatPainterStateCommand(RadRichTextBox editor)
The RadRichTextBox associated with the command.
Properties
Gets a value indicating whether the behavior of the command can be executed in a protected document.
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }
Overrides:
Gets a value indicating whether this command can be executed when RadRichTextBox is read-only. The default implementation returns true.
protected override bool CanExecuteInReadOnlyMode { get; }
true if this command preserves document's content; otherwise, false.
Overrides:
Gets a value indicating whether this command can be executed when editing context is read-only. The default implementation returns true.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Methods
Performs the execute action specific to the command.
protected override void ExecuteOverride(object parameter)
The command parameter.
Overrides:
Called when the state of the format painter of the RadRichTextBox has changed.
protected virtual void OnStateChanged()
Events
Occurs when the state of the format painter of the RadRichTextBox has changed.
public event EventHandler<FormatPainterStateChangedEventArgs> StateChanged