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:





69871 Nov 15,2007 10:55 AM UTC Nov 20,2007 07:30 AM UTC WinForms 1
Tags: Diagram
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


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;

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




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