Class
RichTextBoxRoutedCommand

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:

cs-api-definition
public class RichTextBoxRoutedCommand : RoutedUICommand

Inheritance: objectRichTextBoxRoutedCommand

Constructors

RichTextBoxRoutedCommand(string)

Declaration

cs-api-definition
public RichTextBoxRoutedCommand(string name)

Parameters

name

string

Methods

CanExecute(object, RadRichTextBox)

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

Declaration

cs-api-definition
public bool CanExecute(object parameter, RadRichTextBox radRichTextBox)

Parameters

parameter

object

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

radRichTextBox

RadRichTextBox

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

Returns

bool

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

Execute(object, RadRichTextBox)

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

Declaration

cs-api-definition
public void Execute(object parameter, RadRichTextBox radRichTextBox)

Parameters

parameter

object

An object that contains the parameters needed for execution.

radRichTextBox

RadRichTextBox

The RadRichTextBox instance on which the command is executed.