Class
MoveItemCommand

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: ICommand

Inherited Members GraphCommandBase.CanExecute(object)GraphCommandBase.NameGraphCommandBase.DiagramItem

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

string

The name.

shape

IDiagramItem

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

object

Overrides GraphCommandBase.Execute(object)

Redo()

Redoes this instance.

Declaration

cs-api-definition
public override void Redo()

Overrides GraphCommandBase.Redo()

Undo(object)

Undoes this instance.

Declaration

cs-api-definition
public override void Undo(object state = null)

Parameters

state

object

Overrides GraphCommandBase.Undo(object)