Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Re-Layout Subordinates

Starting with 17.1, the DiagramControl supports automatic layout. You and your end-users can apply a selected layout algorithm to the subordinates of the selected shapes.

When the layout is applied to subordinates, their parent shapes maintain the initial position.

ReLayout Subordinates Illustration

The Ribbon‘s Re-Layout Subordinates menu item allows end-users to apply a layout to the subordinates of the selected diagram items.

ReLayoutSubordinatesMenuItem

Tip

The layout is applied to all shapes on the canvas except the root shape if no shape is selected.

Use the following methods and commands to re-layout the subordinates of the specified diagram shapes in code.

Layout type Method Command
Tree DiagramControl.ApplyTreeLayoutForSubordinates DiagramCommands.TreeLayoutForSubordinates
Tip-Over Tree DiagramControl.ApplyTipOverTreeLayoutForSubordinates DiagramCommands.TipOverTreeLayoutForSubordinates
Mind Map DiagramControl.ApplyMindMapTreeLayoutForSubordinates DiagramCommands.MindMapTreeLayoutForSubordinates
See Also