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:
[VB]
Dim label As Syncfusion.Windows.Forms.Diagram.Label = New Syncfusion.Windows.Forms.Diagram.Label()
label.Text = "Syncfusion" & Constants.vbCrLf & "Text"
rect.Labels.Add(label)
Please refer to the following sample which illustrates this:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=WrapText_Label-1867460281.zipWe 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 :
[VB]
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,
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TextNode_Wrap740056323.zipNote: In the above sample, I have used Wrap Text property only for first node.
Please let me know if this helps.
Thanks,
Melba