New to Telerik UI for WinForms? Start a free 30-day trial

Stores a command's display text and name on a RoutedCommand.

This compatibility type does not implement command routing or execution; the inherited methods throw NotImplementedException.

Definition

Namespace:Telerik.WinForms.Documents.RichTextBoxCommands

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class RoutedUICommand : RoutedCommand, ICommand

Inheritance: objectRoutedCommandRoutedUICommand

Derived Classes: RichTextBoxRoutedCommand

Implements: ICommand

Inherited Members RoutedCommand.CanExecute(object)RoutedCommand.Execute(object)RoutedCommand.CanExecuteChanged

Constructors

Initializes a command with empty text and name.

C#
public RoutedUICommand()

Initializes a command with the specified display text and name.

C#
public RoutedUICommand(string text, string name, Type ownerType)
Parameters:textstring

The command's display text; this constructor does not reject null.

namestring

The command's name.

ownerTypeType

Accepted for compatibility but not stored or used.

Properties

Gets or sets the command's name.

C#
public string Name { get; set; }

Gets or sets the command's display text.

C#
public string Text { get; set; }
Exceptions: ArgumentNullException

The assigned value is null.