Class ChangeSourceCommand
The change source undoable command.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public class ChangeSourceCommand : GraphCommandBase, ICommand
Constructors
ChangeSourceCommand(IConnection, IConnector, Point, Action<IConnection>, Action<IConnection>)
Initializes a new instance of the ChangeSourceCommand class.
Declaration
public ChangeSourceCommand(IConnection connection, IConnector sourceConnector = null, Point newSourcePoint = null, Action<IConnection> undoAction = null, Action<IConnection> redoAction = null)
Parameters
IConnection
connection
The connection. |
IConnector
sourceConnector
The source connector. |
System.Windows.Point
newSourcePoint
The new source point. |
System.Action<IConnection>
undoAction
The undo action. |
System.Action<IConnection>
redoAction
The redo action. |
Methods
Execute(Object)
Executes the specified state.
Declaration
public override void Execute(object state = null)
Parameters
System.Object
state
|
Overrides
Redo()
Undo(Object)
Undoes this instance.
Declaration
public override void Undo(object state = null)
Parameters
System.Object
state
|