Class
CommandBinding

Definition

Namespace:Telerik.WinForms.Documents.RichTextBoxCommands

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

cs-api-definition
public class CommandBinding

Inheritance: objectCommandBinding

Constructors

CommandBinding()

Initializes a new instance of the CommandBinding class.

Declaration

cs-api-definition
public CommandBinding()

CommandBinding(ICommand)

Initializes a new instance of the CommandBinding class by using the specified ICommand.

Declaration

cs-api-definition
public CommandBinding(ICommand command)

Parameters

command

ICommand

The command to base the new RoutedCommand on.

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed event handler.

Declaration

cs-api-definition
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed)

Parameters

command

ICommand

The command to base the new RoutedCommand on.

executed

ExecutedRoutedEventHandler

The handler for the Executed event on the new RoutedCommand.

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed and CanExecute even handlers.

Declaration

cs-api-definition
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute)

Parameters

command

ICommand

The command to base the new RoutedCommand on.

executed

ExecutedRoutedEventHandler

The handler for the Executed event on the new RoutedCommand.

canExecute

CanExecuteRoutedEventHandler

The handler for the CanExecute event on the new RoutedCommand.

Properties

Command

Declaration

cs-api-definition
public ICommand Command { get; set; }

Property Value

ICommand

Events

CanExecute

Occurs when the command associated with this CommandBinding initiates a check to determine whether the command can be executed on the command target.

Declaration

cs-api-definition
public event CanExecuteRoutedEventHandler CanExecute

Event Value

CanExecuteRoutedEventHandler

Executed

Occurs when the command associated with this CommandBinding executes.

Declaration

cs-api-definition
public event ExecutedRoutedEventHandler Executed

Event Value

ExecutedRoutedEventHandler

PreviewCanExecute

Occurs when the command associated with this CommandBinding initiates a check to determine whether the command can be executed on the current command target.

Declaration

cs-api-definition
public event CanExecuteRoutedEventHandler PreviewCanExecute

Event Value

CanExecuteRoutedEventHandler

PreviewExecuted

Occurs when the command associated with this CommandBinding executes.

Declaration

cs-api-definition
public event ExecutedRoutedEventHandler PreviewExecuted

Event Value

ExecutedRoutedEventHandler