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.
Unfortunately, activation email could not send to your email. Please try again.

LayoutManagers?

Thread ID:

Created:

Updated:

Platform:

Replies:

17352 Aug 6,2004 04:51 AM Aug 6,2004 03:47 PM Windows Forms 1
loading
Tags: Diagram
Theo Danzfuss
Asked On August 6, 2004 04:51 AM

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 03:47 PM

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.

CONFIRMATION

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.

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.

;