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

The change source undoable command.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class ChangeSourceCommand : GraphCommandBase, ICommand

Inheritance: objectGraphCommandBaseChangeSourceCommand

Implements: ICommand

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

Constructors

Initializes a new instance of the ChangeSourceCommand class.

C#
public ChangeSourceCommand(IConnection connection, IConnector sourceConnector = null, Point newSourcePoint = default, Action<IConnection> undoAction = null, Action<IConnection> redoAction = null)
Parameters:connectionIConnection

The connection.

sourceConnectorIConnector

The source connector.

newSourcePointPoint

The new source 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)