Table of Contents

Class RemoveElementsCommand

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

Command to remove one or more elements from the graph. Supports nodes, edges, and shapes. For nodes, automatically removes connected edges.

public class RemoveElementsCommand : IGraphCommand
Inheritance
RemoveElementsCommand
Implements
Inherited Members

Constructors

RemoveElementsCommand(Graph, ICanvasElement)

Creates a remove command for a single element.

public RemoveElementsCommand(Graph graph, ICanvasElement element)

Parameters

graph Graph
element ICanvasElement

RemoveElementsCommand(Graph, IEnumerable<ICanvasElement>)

Creates a remove command for multiple elements.

public RemoveElementsCommand(Graph graph, IEnumerable<ICanvasElement> elements)

Parameters

graph Graph
elements IEnumerable<ICanvasElement>

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