GoDiagram Win Reference
SetPortSpots Method

Assign port spots for single-port nodes, if SetsPortSpot or SetsChildPortSpot is true, according to the value of PortSpot or ChildPortSpot.
Syntax
'Declaration
 
Protected Overridable Sub SetPortSpots( _
   ByVal n As GoLayoutTreeNode _
) 
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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoLayoutTree Class
GoLayoutTree Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback