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

ICommand

Interface

Describes and undo redo unit of work.

Definition

Properties

Gets or sets the name.

C#
string Name { get; set; }
Property Value:

The name.

Methods

Returns boolean value indicating whether the Command can be executed or not.

C#
bool CanExecute(object state)
Parameters:stateobjectReturns:

bool

Executes an undoable action.

C#
void Execute(object state)
Parameters:stateobject

Executes an undoable action.

C#
void Redo()

Unwinds an undoable action.

C#
void Undo(object state)
Parameters:stateobject