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.
ADAdministrator Syncfusion Team August 6, 2004 03:47 PM
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.