Class RemoveElementsCommand
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
graphGraphelementICanvasElement
RemoveElementsCommand(Graph, IEnumerable<ICanvasElement>)
Creates a remove command for multiple elements.
public RemoveElementsCommand(Graph graph, IEnumerable<ICanvasElement> elements)
Parameters
graphGraphelementsIEnumerable<ICanvasElement>
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()