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

ICommand

Interface

Describes and undo redo unit of work.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public interface ICommand

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