Class NodeExtension
Provides extension methods for nodes.
public static class NodeExtension
- Inheritance
-
objectNodeExtension
Methods
EstimateHeight(INode)
Estimates a height of a node in the editor.
public static double EstimateHeight(this INode node)
Parameters
nodeINodeThe node whose height to estimate.
Returns
- double
The estimated height in pixels.
EstimateWidth(INode)
Estimates a width a node in the editor.
public static double EstimateWidth(this INode node)
Parameters
nodeINodeThe node whose width to estimate.
Returns
- double
The estimated width in pixels.
IsInLoop(INode, INode)
Determines whether the node is part of a loop when the provided pending connecting would be connected.
public static bool IsInLoop(this INode node, INode pendingConnection)