Table of Contents

Class NodeExtension

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Provides extension methods for nodes.

public static class NodeExtension
Inheritance
object
NodeExtension

Methods

EstimateHeight(INode)

Estimates a height of a node in the editor.

public static double EstimateHeight(this INode node)

Parameters

node INode

The 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

node INode

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

Parameters

node INode

The node to check

pendingConnection INode

The node to which a connection is pending

Returns

bool

true if there would be a loop; otherwise false.