GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutTree Class / SetPortSpots Method
In This Topic
    SetPortSpots Method
    In This Topic
    Assign port spots for single-port nodes, if SetsPortSpot or SetsChildPortSpot is true, according to the value of PortSpot or ChildPortSpot.
    Syntax
    protected virtual void SetPortSpots( 
       GoLayoutTreeNode n
    )

    Parameters

    n
    Remarks
    This iterates over all of the GoLayoutTreeLinks in the network, finds the corresponding Northwoods.Go.GoPort, and assigns their Northwoods.Go.GoPort.FromSpot and/or Northwoods.Go.GoPort.ToSpot property if the SetsPortSpot and/or SetsChildPortSpot properties are true, and if the port's node only has a single port. The spot values are given by PortSpot and ChildPortSpot respectively, unless the value is Northwoods.Go.GoObject.NoSpot. In the latter case the actual spot is determined by the GoLayoutTreeNode.Angle of the parent node (the GoLayoutGenericNetwork.Link<N,L,Y>.FromNode). For example, when the angle is zero, the tree grows deeper toward the right. So the Northwoods.Go.GoPort.FromSpot will be set to GoObject.MiddleRight, and the Northwoods.Go.GoPort.ToSpot will be set to GoObject.MiddleLeft.
    See Also