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


Thread ID:





17352 Aug 6,2004 08:51 AM UTC Aug 6,2004 07:47 PM UTC WinForms 1
Tags: Diagram
Theo Danzfuss
Asked On August 6, 2004 08:51 AM UTC

What Layout Managers are available and how do I use them? My application generates a number of symbols from a datasource and I don''t feel like Setting their Layout Manually. When I set the Diagram.LayoutManager.AutoLayout to true I get a null reference exception? Your help will be appreciated. TD

Administrator [Syncfusion]
Replied On August 6, 2004 07:47 PM UTC

Hi Theo, Essential Diagram provides only the basic plumbing for the LayoutManager and the actual layout algorithm has to be implemented by the application hosting the diagram. In your application, first subclass the Diagram.LayoutManager class, override it''s UpdateLayout(object contextInfo) method and then provide the appropriate layout logic from within this method. Setting the Diagram.LayoutManager property to refer to an instance of your LayoutManager will then hook up the diagram to the layout manager. The Essential Diagram\OrgChart sample shows an implementation for a LayoutManager. Referring to this sample and the class reference documentation on the LayoutManager type will give you a good idea on how to go about adding layout management. Regards, Prakash Surendra, Syncfusion, Inc.


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