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

Represents class that describes ICellEditor Command.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Commands

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Type Parameters:

T

The type of the T.

Syntax:

C#
public abstract class CellEditorCommandBase<T> : ICommand where T : ICellEditor

Inheritance: objectCellEditorCommandBase<T>

Derived Classes: CellEditorDelegateCommand<T>

Implements: ICommand

Constructors

Initializes a new instance of the CellEditorCommandBase<T> class.

C#
protected CellEditorCommandBase(T associatedCellEditor)
Parameters:associatedCellEditorT

The associated cell editor.

Properties

Gets the associated cell editor.

C#
public T AssociatedCellEditor { get; }
Property Value:

The associated cell editor.

Methods

Defines the method that determines whether the command can execute in its current state.

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

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Returns:

bool

true if this command can be executed; otherwise, false.

Implements: ICommand.CanExecute(object)

Defines the method that determines whether the command can execute in its current state.

C#
protected abstract bool CanExecuteOverride(object parameter)
Parameters:parameterobject

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Returns:

bool

true if this command can be executed; otherwise, false.

Defines the method to be called when the command is invoked.

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

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Implements: ICommand.Execute(object)

Defines the method to be called when the command is invoked.

C#
protected abstract void ExecuteOverride(object parameter)
Parameters:parameterobject

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Called when [can execute changed].

C#
protected virtual void OnCanExecuteChanged()

Events

Occurs when changes occur that affect whether or not the command should execute.

C#
public event EventHandler CanExecuteChanged

Implements: ICommand.CanExecuteChanged