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

The change target undoable command.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class ChangeTargetCommand : GraphCommandBase, ICommand

Inheritance: objectGraphCommandBaseChangeTargetCommand

Implements: ICommand

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

Constructors

Initializes a new instance of the ChangeTargetCommand class.

C#
public ChangeTargetCommand(IConnection connection, IConnector targetConnector = null, Point newTargetPoint = default, Action<IConnection> undoAction = null, Action<IConnection> redoAction = null)
Parameters:connectionIConnection

The connection.

targetConnectorIConnector

The target connector.

newTargetPointPoint

The new target point.

undoActionAction<IConnection>

The undo action.

redoActionAction<IConnection>

The redo action.

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)