Northwoods.GoWeb Assembly > Northwoods.GoWeb Namespace > GoSubGraph Class : LayoutPort Method |
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.
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