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

per link layout properties

Are there any per-link properties that affect the behavior of the layout engines? For example, one might want to specify a property on certain links that tended to make those links shorter and thus keep the connected objects closer together.

Regards,
skl


1 Reply

AA Amsath Ali M Syncfusion Team March 10, 2011 01:23 PM UTC

Hi Scott,

Thanks for using Syncfusion products.

The DiagramLayoutManger has the properties called 'HorizontalSapcing' and 'VerticalSpacing' for maintaining space between nodes. We suggest you to use these properties to achieve your requirement.

Please refer the below code snippet:

DirectedTreeLayoutManager lmanager = new DirectedTreeLayoutManager(diagram1.Model, 45, 30, 30);
//Horizontal and Vertical Spacing
lmanager.VerticalSpacing = 10;
lmanager.HorizontalSpacing = 10;


Please let me know your concerns.

Regards,
Amsath ali.M



Loader.
Live Chat Icon For mobile
Up arrow icon