How to autolayout nodes when creating diagram completely in code

HI,

i want to create a diagram completely in code only with  the OrgLayout (WinForms).

How can i create now nodes which are automatically layouted.

When creating a node the position needs to be supplied, but it is unclear how to layout the nodes automatically?


Best Regards

cb


1 Reply

KR Karkuvel Rajan Shanmugavel Syncfusion Team February 15, 2024 11:59 AM UTC

Hi Carsten,


Requirement: How to create OrgLayout in Winforms Diagram


You can create OrgLayout in WinForms Diagram using C# files completely. Please refer to the below documentation link for more information about the OrgLayout in the WinForms Diagram.


Layout Management in Windows Forms Diagram control | Syncfusion


Note: We request you look at our WPF diagram component if your project is in the initial stage. When compared to the WindowsForms diagram, the WPF diagram is a feature-rich library for visualizing, creating, and editing interactive diagrams. It supports creating flowcharts, organizational charts, redrawing connectors, etc.


Please refer to the below link to learn about WPF SfDiagram and Automatic layouts,


About WPF Diagram control | Syncfusion

Organization layout in WPF Diagram control | Syncfusion

Regards,

Karkuvel Rajan S


Attachment: OrgLayoutSampleWinForms_9c5cc000.zip

Loader.
Up arrow icon