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