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 Label

Thread ID:





94389 May 11,2010 01:32 AM UTC May 14,2010 01:14 PM UTC WinForms 1
Tags: Diagram
Administrator [Syncfusion]
Asked On May 11, 2010 01:32 AM UTC

If a diagram label has a lot of text, how do I get it to word wrap? Currently it is printing on one line and extends beyond the symbol borders.

There is a whole section in the product description page dedicated to Multiline Labels:


BUT, I can't find any such properties in the version I have installed

Melba Winshia [Syncfusion]
Replied On May 14, 2010 01:14 PM UTC

Hi David,

Thank you for contacting Syncfusion Support.

We do not have WrapText property for Label. But as a workaround you can use carriage return to achieve this:


Dim label As Syncfusion.Windows.Forms.Diagram.Label = New Syncfusion.Windows.Forms.Diagram.Label()
label.Text = "Syncfusion" & Constants.vbCrLf & "Text"

Please refer to the following sample which illustrates this:


We suggest that you use TextNode instead of Label, since label has few limitations in terms of usage of properties. TextNode was implemented considering these limitations and also we have 'WrapText' property for TextNode.

Please refer to the following code snippet that illustrates how to use a TextNode and append it :


Dim CaptionField As Syncfusion.Windows.Forms.Diagram.TextNode = New Syncfusion.Windows.Forms.Diagram.TextNode("large text large text large text", New RectangleF(10, 30, 90, 40))
CaptionField.LineStyle.LineColor = Color.Transparent
CaptionField.HorizontalAlignment = StringAlignment.Center
CaptionField.VerticalAlignment = StringAlignment.Center
CaptionField.WrapText = True
CaptionField.PinPoint = outershape.PinPoint

Also, I have created a sample which illustrates this,


Note: In the above sample, I have used Wrap Text property only for first node.

Please let me know if this 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

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