ClassDrawCommand
Class
Base class for undoable actions based on delegates.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
cs-api-definition
public class DrawCommand : UndoableDelegateCommand, ICommand
Inheritance: objectUndoableDelegateCommandDrawCommand
Implements:
Inherited Members
Constructors
DrawCommand(string, IGeometryShape, bool, DrawingState, DrawingState, Action<object>, Action<object>, Predicate<object>)
Initializes a new instance of the DrawCommand class.
Declaration
cs-api-definition
public DrawCommand(string name, IGeometryShape shape, bool isComplete, DrawingState oldState, DrawingState newState, Action<object> execute, Action<object> undo = null, Predicate<object> canExecute = null)
Parameters
name
The name.
shape
The shape.
isComplete
If set to true [is complete].
oldState
The old state.
newState
The new state.
execute
The execute.
undo
The undo.
canExecute
The can execute.
Properties
IsComplete
Gets a value indicating whether this instance is complete.
NewState
Gets the new state.
OldState
Gets the old state.
Shape
Gets the shape.