Table of Contents

Class ResizeNodeCommand

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

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

graph Graph
nodeId string
oldWidth double?
oldHeight double?
newWidth double?
newHeight double?

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

graph Graph

The graph containing the node.

nodeId string

The ID of the node to resize.

oldWidth double?

The old width (null = default).

oldHeight double?

The old height (null = default).

newWidth double?

The new width (null = default).

newHeight double?

The new height (null = default).

oldPosition Point

The old position (for corner resizing).

newPosition Point

The new position (for corner resizing).

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()