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

How to remove a border line from rectangle

Hi All,

please, help me. I want to remove a border from a Syncfusion Rectangle. I try to set Rect1.LineStyle.LineWidth = 0; ,
but this action has no effect.

In my situation, i can't set color of line to background color, because i loss one pixel and have a blank space between objects(i.e. between rectangle and rectangle).

Thanks,
Sergey.



rectangle.zip

2 Replies

VK Vishnu Kumar Syncfusion Team January 31, 2008 08:58 AM UTC

Hi Ronald,

Thank you for your patience.

Issue 1 : remove a border from a Syncfusion Rectangle

You can remove a border from the diagram by using below code snippet:



[C#]
//Set Line color
DiagramWebControl2.Model.LineStyle.LineColor = System.Drawing.Color.Transparent;

//Set line width
DiagramWebControl2.Model.LineStyle.LineWidth = 0;


Also I have created a simple sample and it is available in the following link:

http://websamples.syncfusion.com/samples/Diagram.Web/6.1.0.34/71427/main.htm

Please try running the above sample and let me know if this helps.

Regards,
Vishnu.





SA Sergey A. Laptev January 31, 2008 03:09 PM UTC

Vishnu,

thanks for your advice! It's realy working good!
You can put this topic to the knowledge base, because it can be useful for other users of the Syncfusion Diagram!

Thanks,
Sergey.


Loader.
Live Chat Icon For mobile
Up arrow icon