ClassMoveItemCommand
Class
Undoable move action.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
cs-api-definition
public class MoveItemCommand : GraphCommandBase, ICommand
Inheritance: objectGraphCommandBaseMoveItemCommand
Implements:
Inherited Members
Constructors
MoveItemCommand(string, IDiagramItem, Point, Point)
Initializes a new instance of the MoveItemCommand class.
Declaration
cs-api-definition
public MoveItemCommand(string name, IDiagramItem shape, Point oldLocation, Point newLocation)
Parameters
name
The name.
shape
The shape.
oldLocation
Point
The old location.
newLocation
Point
The new location.
Methods
Execute(object)
Executes the specified state.
Declaration
cs-api-definition
public override void Execute(object state = null)
Parameters
state
Overrides
Undo(object)
Undoes this instance.
Declaration
cs-api-definition
public override void Undo(object state = null)
Parameters
state
Overrides