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.

Multiline text - Label in diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

69871 Nov 15,2007 05:55 AM Nov 20,2007 02:30 AM Windows Forms 1
loading
Tags: Diagram
Priyatharcini
Asked On November 15, 2007 05:55 AM

how to set label text in multiple line in syncfusion diagrm


Sri Subhashini M [Syncfusion]
Replied On November 20, 2007 02:30 AM

Hi,

My apologies for the delay in responding to you.

I was able to view the condition you have described here. We can set multiline text to the label by adding new line characters in the Label text.

Kindly review the code snippet,

// Creating Rectangle Node
Rectangle rect = new Rectangle(20, 100, 250, 250);
// Setting multiline text
rect.Labels.Add(new Label(rect, "MultiLine \n Label Text"));
rect.Labels[0].FontStyle.Bold = true;

rect.FillStyle.Color = Color.LightBlue;
this.diagram1.Model.AppendChild(rect);

Please take a look at the sample and let me know if it helps.

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

Regards,
Suba


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.

;