New to Telerik UI for WinFormsStart a free 30-day trial

Undoable shape manipulation action.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class ManipulateShapeCommand : GraphCommandBase, ICommand

Inheritance: objectGraphCommandBaseManipulateShapeCommand

Implements: ICommand

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

Constructors

Initializes a new instance of the ManipulateShapeCommand class.

C#
public ManipulateShapeCommand(string name, IShape shape, Point oldPosition, Size oldSize, double oldAngle)
Parameters:namestring

The name.

shapeIShape

The shape.

oldPositionPoint

The old position.

oldSizeSize

The old size.

oldAngledouble

The old angle.

Methods

Executes the specified state.

C#
public override void Execute(object state = null)
Parameters:stateobject

Overrides: GraphCommandBase.Execute(object)

Redoes this instance.

C#
public override void Redo()

Overrides: GraphCommandBase.Redo()

Undoes this instance.

C#
public override void Undo(object state = null)
Parameters:stateobject

Overrides: GraphCommandBase.Undo(object)