Class GraphCommandBase
Base implementation of the ICommand undo redo interface.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public abstract class GraphCommandBase : ICommand
Constructors
GraphCommandBase(String)
Initializes a new instance of the Graph
Declaration
protected GraphCommandBase(string name)
Parameters
System. The name. |
GraphCommandBase(String, IDiagramItem)
Initializes a new instance of the Graph
Declaration
protected GraphCommandBase(string name, IDiagramItem diagramItem)
Parameters
System. The name. |
IDiagram The graph item. |
Properties
DiagramItem
Gets the graph item.
Declaration
public IDiagramItem DiagramItem { get; }
Property Value
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
System. The name. |
Implements
Methods
CanExecute(Object)
Determines whether this instance can execute.
Declaration
public virtual bool CanExecute(object state)
Parameters
System.
|
Returns
System.
|
Implements
Execute(Object)
Executes the specified state.
Declaration
public abstract void Execute(object state = null)
Parameters
System.
|
Implements
Redo()
Undo(Object)
Unwinds an undoable action.
Declaration
public abstract void Undo(object state = null)
Parameters
System.
|