Search
CompositeNode.ArrangeComponents Method
See Also
 





Invokes when the components within this node are being arranged.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public virtual void ArrangeComponents (
    Rect availableSpace,
    IGraphics graphics
)

Visual Basic  Copy Code

Public Overridable Sub ArrangeComponents( _
    availableSpace As Rect, _
    graphics As IGraphics _
)

 Parameters

availableSpace

The available space.

graphics
An IGraphics object that can be used for text measurement.

 Remarks

By default components are arranged on top of each other, in the order they were added to the Components collection. To apply more specialized arrangement add the components to a ContainerComponent (such as SimplePanel, StackPanel or GridPanel) then add this ContainerComponent as a child of the CompositeNode. The component system allows you to implement additional ContainerComponent-derived classes to apply custom arrangement logic.

Another way to apply custom arrangement is to derive from CompositeNode and override the ArrangeComponents method. Then position the components by setting their Bounds property.

 See Also