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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

71427 Jan 30,2008 12:41 PM UTC Jan 31,2008 03:09 PM UTC WinForms 2
loading
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).

Thanks,
Sergey.



rectangle.zip

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:



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




Sergey A. Laptev
Replied On 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.


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.

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

;