GoDiagram Web Reference
LayoutPort Method

This positions the port within the group, normally exactly where the Handle is.
Syntax
'Declaration
 
Public Overridable Sub LayoutPort() 
public virtual void LayoutPort()
Remarks
If there is no Handle, the port gets the bounds of the Label. If there is no Label, the port is positioned at the top left corner, inside the margin. If you override this, you should be sure to position the port within the bounds of the subgraph.
Example

For example, if you want the port's Bounds to be the same as the bordered area, override this method as follows:

              public override void LayoutPort() {
                GoPort p = this.Port;
                if (p != null && p.CanView()) {
                  RectangleF r = ComputeBorder();
                  p.Bounds = r;
                }
              }
            

For more examples, see the classes in the SubGraphApp sample.

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

GoSubGraph Class
GoSubGraph Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback