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

Multiline text - Label in diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

69871 Nov 15,2007 10:55 AM UTC Nov 20,2007 07:30 AM UTC WinForms 1
loading
Tags: Diagram
Priyatharcini
Asked On November 15, 2007 10:55 AM UTC

how to set label text in multiple line in syncfusion diagrm


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

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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;