New to Telerik UI for WPFStart a free 30-day trial

Represents a routed command for the RichTextBox in Telerik's Document Framework. This command encapsulates the logic to execute specific actions related to the RichTextBox control.

Definition

Namespace:Telerik.Windows.Documents.RichTextBoxCommands

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class RichTextBoxRoutedCommand : RoutedUICommand

Inheritance: objectRichTextBoxRoutedCommand

Constructors

C#
public RichTextBoxRoutedCommand(string name)
Parameters:namestring

Methods

Determines whether the specified command can be executed on the given RadRichTextBox instance.

C#
public bool CanExecute(object parameter, RadRichTextBox radRichTextBox)
Parameters:parameterobject

An optional object that can provide additional data for the command execution context.

radRichTextBoxRadRichTextBox

The RadRichTextBox instance on which to evaluate the command's executability.

Returns:

bool

True if the command can be executed; otherwise, false.

Executes the command with the specified parameters against the provided RadRichTextBox instance.

C#
public void Execute(object parameter, RadRichTextBox radRichTextBox)
Parameters:parameterobject

An object that contains the parameters needed for execution.

radRichTextBoxRadRichTextBox

The RadRichTextBox instance on which the command is executed.