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