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.

per link layout properties

Thread ID:

Created:

Updated:

Platform:

Replies:

98443 Feb 28,2011 02:11 PM Mar 10,2011 08:23 AM Windows Forms 1
loading
Tags: Diagram
Scott Lindsay
Asked On February 28, 2011 02:11 PM

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


Amsath Ali M [Syncfusion]
Replied On March 10, 2011 08:23 AM

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



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.

;