GoDiagram Win Reference
Collapse Method (GoSubGraph)

Reposition all of the children so that this node takes a minimum amount of space.
Syntax
'Declaration
 
Public Overridable Sub Collapse() 
public virtual void Collapse()
Remarks
This method will first set the State to GoSubGraphState.Collapsing. It then calls PrepareCollapse, which collapses any nested subgraphs. It will call ComputeReferencePoint to determine the reference position for the collapsed subgraph. Then it will call ComputeCollapsedSize to determine the desired size of the collapsed subgraph, will call SaveChildBounds to remember the expanded size and relative position of each child, will call CollapseChild to actually move and perhaps resize each child, and then will call FinishCollapse. It then sets the state to GoSubGraphState.Collapsed. Afterwards, IsExpanded will be false, and this method calls LayoutChildren(null) to give LayoutLabel, LayoutHandle, and LayoutPort a chance. This method does nothing if this node is already collapsed or if Collapsible is false.
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

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback