Interface
ICommand

Describes and undo redo unit of work.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public interface ICommand

Properties

Name

Gets or sets the name.

Declaration

cs-api-definition
string Name { get; set; }

Property Value

string

The name.

Methods

CanExecute(object)

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

Declaration

cs-api-definition
bool CanExecute(object state)

Parameters

state

object

Returns

bool

Execute(object)

Executes an undoable action.

Declaration

cs-api-definition
void Execute(object state)

Parameters

state

object

Redo()

Executes an undoable action.

Declaration

cs-api-definition
void Redo()

Undo(object)

Unwinds an undoable action.

Declaration

cs-api-definition
void Undo(object state)

Parameters

state

object