Routes execution and availability checks to a command exposed by a RadRichTextBox's command collection.
The command is resolved from the editor's
Commandscollection using its name followed byCommand.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class RichTextBoxRoutedCommand : RoutedUICommand, ICommand
Inheritance: objectRoutedCommandRoutedUICommandRichTextBoxRoutedCommand
Implements:
Inherited Members
Constructors
Creates a routed-command identifier that resolves the corresponding command on each editor.
public RichTextBoxRoutedCommand(string name)
The routed-command name and the prefix of the corresponding command-collection property.
Methods
Checks whether the matching command from the specified editor's command collection can execute.
public bool CanExecute(object parameter, RadRichTextBox radRichTextBox)
The command-specific parameter forwarded to the editor command.
radRichTextBoxRadRichTextBoxThe editor whose command collection supplies the command.
Returns:true if the command exists and can execute; otherwise, false.
Executes the matching command from the specified editor's command collection when one is available.
public void Execute(object parameter, RadRichTextBox radRichTextBox)
The command-specific parameter forwarded to the editor command.
radRichTextBoxRadRichTextBoxThe editor whose command collection supplies the command.