Table of Contents

Class ResizeElementsCommand

Namespace
FlowGraph.Core.Commands
Assembly
FlowGraph.Core.dll

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

graph Graph
element ICanvasElement
oldSize ResizeElementsCommand.SizeSnapshot
newSize ResizeElementsCommand.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

graph Graph
oldSizes Dictionary<string, ResizeElementsCommand.SizeSnapshot>
newSizes Dictionary<string, ResizeElementsCommand.SizeSnapshot>

Properties

Description

Gets a human-readable description of the command.

public string Description { get; }

Property Value

string

Methods

Execute()

Executes the command.

public void Execute()

Undo()

Reverses the command (undo).

public void Undo()