GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutLayeredDigraph Class / NodeMinLayerSpace Method
whether to return the distance from the GoLayoutGenericNetwork.Node<N,L,Y>.Position to the Center, or from the Center to the bottom or right side of the Bounds
In This Topic
    NodeMinLayerSpace Method
    In This Topic
    This function returns the minimum space reserved for this node from the center point for the "depth" of the layer that it is in.
    Syntax
    protected virtual float NodeMinLayerSpace( 
       GoLayoutLayeredDigraphNode node,
       bool topleft
    )

    Parameters

    node
    topleft
    whether to return the distance from the GoLayoutGenericNetwork.Node<N,L,Y>.Position to the Center, or from the Center to the bottom or right side of the Bounds

    Return Value

    Returns the minimum space reserved above and below this node, in document coordinates
    Remarks
    The default implementation returns 0 for nodes that do not correspond to top-level Go objects. For nodes that do correspond to top-level Go objects, the layer space is determined by the width or height of the object depending on the DirectionOption. By default this adds 10 to the space, to account for port end segment lengths.
    See Also