Interface ICommand
Describes and undo redo unit of work.
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public interface ICommand
Properties
Name
Gets or sets the name.
Declaration
string Name { get; set; }
Property Value
System.String
The name. |
Methods
CanExecute(Object)
Returns boolean value indicating whether the Command can be executed or not.
Declaration
bool CanExecute(object state)
Parameters
System.Object
state
|
Returns
System.Boolean
|
Execute(Object)
Executes an undoable action.
Declaration
void Execute(object state)
Parameters
System.Object
state
|
Redo()
Executes an undoable action.
Declaration
void Redo()
Undo(Object)
Unwinds an undoable action.
Declaration
void Undo(object state)
Parameters
System.Object
state
|