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
close icon

Setting Link Line Style Properties

How are the line style properties set for a link in version 4.4.x and 5.1? For example, how do I set the line thickness and color for a link?

There are endpoint properties that handle this, but I cannot find a property to handle the line.

Thank you

3 Replies

MF Meera Fathima Syncfusion Team July 9, 2007 01:12 PM UTC


Hello Michael,

Please see the below code snippet that shows how to set the line color and width of the link\connector.

In v4.4 :

Link.LineStyle.LineColor = Color.MidnightBlue; // To set the line color of the link.

Link.LineStyle.LineWidth = 2; // To set the line width of the link.

In 5.1 :

LineConnector.LineStyle.LineColor = Color.MidnightBlue; // To set the line color of the link.

LineConnector.LineStyle.LineWidth = 2; // To set the line width of the link.

Please let me know if you have any more questions.

Best Regards,
Meera.

Syncfusion, Inc.
http://www.syncfusion.com/


MJ Michael Jones July 9, 2007 03:49 PM UTC

Hi Meera,

The properties you suggest for version 4.4 generate a warning that they are obsolete and have no effect. Using these properties generate an internal error (not thrown, but can be seen in the output window) and the line is not displayed.



>
Hello Michael,

Please see the below code snippet that shows how to set the line color and width of the link\connector.

In v4.4 :

Link.LineStyle.LineColor = Color.MidnightBlue; // To set the line color of the link.

Link.LineStyle.LineWidth = 2; // To set the line width of the link.

In 5.1 :

LineConnector.LineStyle.LineColor = Color.MidnightBlue; // To set the line color of the link.

LineConnector.LineStyle.LineWidth = 2; // To set the line width of the link.

Please let me know if you have any more questions.

Best Regards,
Meera.

Syncfusion, Inc.
http://www.syncfusion.com/


MJ Michael Jones July 9, 2007 03:56 PM UTC

I take it back. While the properties are marked obsolete, they are working. So, things are fine.

>
Hello Michael,

Please see the below code snippet that shows how to set the line color and width of the link\connector.

In v4.4 :

Link.LineStyle.LineColor = Color.MidnightBlue; // To set the line color of the link.

Link.LineStyle.LineWidth = 2; // To set the line width of the link.

In 5.1 :

LineConnector.LineStyle.LineColor = Color.MidnightBlue; // To set the line color of the link.

LineConnector.LineStyle.LineWidth = 2; // To set the line width of the link.

Please let me know if you have any more questions.

Best Regards,
Meera.

Syncfusion, Inc.
http://www.syncfusion.com/

Loader.
Live Chat Icon For mobile
Up arrow icon