Class MoveNode
Represents a node editor command that can be used to move a node.
public class MoveNode : INodeEditorCommand
- Inheritance
-
objectMoveNode
- Implements
Constructors
MoveNode(INode, double, double)
Creates a new instance of the MoveNode class.
public MoveNode(INode node, double x, double y)
Parameters
MoveNode(INode, double, double, double, double)
Creates a new instance of the MoveNode class.
public MoveNode(INode node, double x, double y, double originalX, double originalY)
Parameters
nodeINodeThe node to update.
xdoubleThe new X-position.
ydoubleThe new Y-position.
originalXdoubleThe original X-position.
originalYdoubleThe original Y-position.
Properties
DisplayName
Gets the name of the command
public string DisplayName { get; }
Property Value
Methods
Execute()
Executes the command
public void Execute()
Undo()
Undoes the command
public void Undo()