Class
ManipulateShapeCommand

Undoable shape manipulation action.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class ManipulateShapeCommand : GraphCommandBase, ICommand

Inheritance: objectGraphCommandBaseManipulateShapeCommand

Implements: ICommand

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

Constructors

ManipulateShapeCommand(string, IShape, Point, Size, double)

Initializes a new instance of the ManipulateShapeCommand class.

Declaration

cs-api-definition
public ManipulateShapeCommand(string name, IShape shape, Point oldPosition, Size oldSize, double oldAngle)

Parameters

name

string

The name.

shape

IShape

The shape.

oldPosition

Point

The old position.

oldSize

Size

The old size.

oldAngle

double

The old angle.

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)