Artemis Artemis
Artemis Artemis

Search Results for

    Class NodeExtension

    Provides extension methods for nodes.

    Inheritance
    object
    NodeExtension
    Namespace: Artemis.Core
    Assembly: Artemis.Core.dll
    Syntax
    public static class NodeExtension

    Methods

    EstimateHeight(INode)

    Estimates a height of a node in the editor.

    Declaration
    public static double EstimateHeight(this INode node)
    Parameters
    Type Name Description
    INode node

    The node whose height to estimate.

    Returns
    Type Description
    double

    The estimated height in pixels.

    EstimateWidth(INode)

    Estimates a width a node in the editor.

    Declaration
    public static double EstimateWidth(this INode node)
    Parameters
    Type Name Description
    INode node

    The node whose width to estimate.

    Returns
    Type Description
    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.

    Declaration
    public static bool IsInLoop(this INode node, INode pendingConnection)
    Parameters
    Type Name Description
    INode node

    The node to check

    INode pendingConnection

    The node to which a connection is pending

    Returns
    Type Description
    bool

    true if there would be a loop; otherwise false.

    Content is available under the PolyForm Noncommercial License, by Artemis RGB.