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.

How to remove a border line from rectangle

Thread ID:





71427 Jan 30,2008 07:41 AM Jan 31,2008 10:09 AM Windows Forms 2
Tags: Diagram
Sergey A. Laptev
Asked On January 30, 2008 07:41 AM

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).



Vishnu Kumar [Syncfusion]
Replied On January 31, 2008 03:58 AM

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:

//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:


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


Sergey A. Laptev
Replied On January 31, 2008 10:09 AM


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!



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.