Class ClipboardManager
Manages clipboard operations for nodes and edges.
public class ClipboardManager
- Inheritance
-
ClipboardManager
- Inherited Members
Properties
HasContent
Gets whether there is content on the clipboard.
public bool HasContent { get; }
Property Value
Methods
Clear()
Clears the clipboard.
public void Clear()
Copy(IEnumerable<Node>, IEnumerable<Edge>)
Copies the specified nodes and their connecting edges to the clipboard.
public void Copy(IEnumerable<Node> nodes, IEnumerable<Edge> allEdges)
Parameters
nodesIEnumerable<Node>allEdgesIEnumerable<Edge>
Duplicate(Graph, IEnumerable<Node>, IEnumerable<Edge>, Point)
Duplicates the specified nodes in place with an offset.
public (List<Node> nodes, List<Edge> edges) Duplicate(Graph graph, IEnumerable<Node> nodes, IEnumerable<Edge> allEdges, Point offset)
Parameters
graphGraphThe target graph.
nodesIEnumerable<Node>The nodes to duplicate.
allEdgesIEnumerable<Edge>All edges in the graph.
offsetPointThe offset for duplicated nodes.
Returns
Paste(Graph, Point)
Pastes clipboard content into the graph at the specified position.
public (List<Node> nodes, List<Edge> edges) Paste(Graph graph, Point pastePosition)
Parameters
graphGraphThe target graph.
pastePositionPointThe canvas position to paste at (center of pasted nodes).