Class ResizeElementsCommand
Command to resize one or more elements (nodes, shapes). Works with any ICanvasElement that has settable Width/Height properties.
public class ResizeElementsCommand : IGraphCommand
- Inheritance
-
ResizeElementsCommand
- Implements
- Inherited Members
Constructors
ResizeElementsCommand(Graph, ICanvasElement, SizeSnapshot, SizeSnapshot)
Creates a resize command for a single element.
public ResizeElementsCommand(Graph graph, ICanvasElement element, ResizeElementsCommand.SizeSnapshot oldSize, ResizeElementsCommand.SizeSnapshot newSize)
Parameters
graphGraphelementICanvasElementoldSizeResizeElementsCommand.SizeSnapshotnewSizeResizeElementsCommand.SizeSnapshot
ResizeElementsCommand(Graph, Dictionary<string, SizeSnapshot>, Dictionary<string, SizeSnapshot>)
Creates a resize command for multiple elements.
public ResizeElementsCommand(Graph graph, Dictionary<string, ResizeElementsCommand.SizeSnapshot> oldSizes, Dictionary<string, ResizeElementsCommand.SizeSnapshot> newSizes)
Parameters
graphGrapholdSizesDictionary<string, ResizeElementsCommand.SizeSnapshot>newSizesDictionary<string, ResizeElementsCommand.SizeSnapshot>
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()