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.

Drawing a node with rounded edges

Thread ID:

Created:

Updated:

Platform:

Replies:

70809 Jan 2,2008 12:07 PM Jan 3,2008 06:43 AM Windows Forms 1
loading
Tags: Diagram
Ernesto Moscoso Cam
Asked On January 2, 2008 12:07 PM

Hello

I would like to know if a square (or rectangular) node can be drawn having rounded edges.

If the node happens to be a ControlNode with a control inside, would it work?

Thanks a lot.


SubhaSheela R [Syncfusion]
Replied On January 3, 2008 06:43 AM

Hi Emoscosocam,

Thank you for using Syncfusion products.

1. Drawing a node with rounded edges:

A node with rounded edges can be created by using the class RoundRect. Please refer the below code snippet to achieve this:

Syncfusion.Windows.Forms.Diagram.RoundRect rr = new Syncfusion.Windows.Forms.Diagram.RoundRect(100, 100, 200, 100, MeasureUnits.Pixel);
rr.CurveRadius = 20f;
this.diagram1.Model.AppendChild(rr);

Please refer to the below sample that illustrates the same:

http://websamples.syncfusion.com//samples/Diagram.Windows/F70809/main.htm

2. If the node happens to be a ControlNode with a control inside, would it work?

Yes. You can use the controls inside the ControlNode. Please refer to the below browser sample to achieve this:

{Installation Drive}\Documents and Settings\{UserName}\My Documents\Syncfusion\EssentialStudio\6.1.0.34\Windows\ Diagram.Windows\Samples\2.0\Technology\ControlsGalore\cs

Please let me know if you have any questions.

Regards,
Subhasheela R


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.

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.

;