We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Create a diagram programatically

Thread ID:





25875 Mar 8,2005 11:51 PM UTC Mar 11,2005 05:52 AM UTC WinForms 2
Tags: Diagram
Cory Mead
Asked On March 8, 2005 11:51 PM UTC

I want to create a complete visual diagram programattically base on data (example would be a flow chart) and then plug that into the diagram control to display on a form. How would I go about doing that? Do I need to create my own Model object and then plug that into the diagram control? I would love some help on this. Thanks, Cory

Administrator [Syncfusion]
Replied On March 9, 2005 11:57 PM UTC

Hi Cory, Programmatically creating a diagram using the Essential Diagram API is pretty straight-forward. Create an instance of the Diagram control(Syncfusion.Windows.Forms.Diagram.Controls.Diagram), add it to your form, and populate the Diagram control''s Model(accessible through the Diagram.Model property) with the diagram nodes (Shapes, Symbols, Labels, Links etc.,) that will make up the diagram. The ''Samples\In Depth\OrgChart'' sample demonstrates the programmatic creation and addition of diagram objects based on data obtained interactively from the user, while the ''Samples\In Depth\OrgChartXML'' sample demonstrates the creation of a diagram using data sourced form an XML file. I have attached a sample that is a new addition to Essential Diagram, and will be included in forthcoming updates of the product. This sample demonstrates the creation of an organization chart diagram using employee information sourced from an Access database. Please refer to the sampleinfo.txt file for information about the application. Regards, Prakash Surendra Syncfusion Inc., OrgLayout_8783.zip

Cory Mead
Replied On March 11, 2005 05:52 AM UTC

Thanks for the helpful. Information, it put me on the right path. Thanks!


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon