Class ResizeNodeCommand
Command to resize a node.
public class ResizeNodeCommand : IGraphCommand
- Inheritance
-
ResizeNodeCommand
- Implements
- Inherited Members
Constructors
ResizeNodeCommand(Graph, string, double?, double?, double?, double?)
Creates a resize command for a node (without position change).
public ResizeNodeCommand(Graph graph, string nodeId, double? oldWidth, double? oldHeight, double? newWidth, double? newHeight)
Parameters
ResizeNodeCommand(Graph, string, double?, double?, double?, double?, Point, Point)
Creates a resize command for a node.
public ResizeNodeCommand(Graph graph, string nodeId, double? oldWidth, double? oldHeight, double? newWidth, double? newHeight, Point oldPosition, Point newPosition)
Parameters
graphGraphThe graph containing the node.
nodeIdstringThe ID of the node to resize.
oldWidthdouble?The old width (null = default).
oldHeightdouble?The old height (null = default).
newWidthdouble?The new width (null = default).
newHeightdouble?The new height (null = default).
oldPositionPointThe old position (for corner resizing).
newPositionPointThe new position (for corner resizing).
Properties
Description
Gets a human-readable description of the command.
public string Description { get; }
Property Value
Methods
Execute()
Executes the command.
public void Execute()
Undo()
Reverses the command (undo).
public void Undo()