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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to remove a border line from rectangle

Thread ID:





71427 Jan 30,2008 12:41 PM UTC Jan 31,2008 03:09 PM UTC WinForms 2
Tags: Diagram
Sergey A. Laptev
Asked On January 30, 2008 12:41 PM UTC

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

//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 03:09 PM UTC


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon