GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoPort Class / GetFromLinkDir Method
In This Topic
    GetFromLinkDir Method (GoPort)
    In This Topic
    Determine the direction that a link will go when coming out of this port.
    Syntax
    public virtual float GetFromLinkDir( 
       IGoLink link
    )

    Parameters

    link

    Return Value

    A direction in degrees, where the positive X axis is zero, and where 90 is downward along the positive Y axis.
    Remarks
    When the value of FromSpot is not GoObject.NoSpot or GoObject.Middle, this just returns the result of calling GetLinkDir. Otherwise this returns one of the horizontal or vertical directions, based on the relative positions of the link's other port. You may wish to override this method if you want to customize dynamically the direction of the link at the link point.
    See Also