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

ICommand

Interface

Defines the availability, execution, and availability-notification contract for a command.

Definition

Namespace:Telerik.WinControls.UI.Utilities.PlatformSpecific

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public interface ICommand

Methods

Determines whether the command can execute with the specified parameter.

C#
bool CanExecute(object parameter)
Parameters:parameterobject

Command-specific data.

Returns:

bool

true when the command can execute.

Executes the command with the specified parameter.

C#
void Execute(object parameter)
Parameters:parameterobject

Command-specific data.

Events

Occurs when the result of CanExecute(object) may have changed.

C#
event EventHandler CanExecuteChanged