BasicShape node = new BasicShape();
//label creation
Label label = new Label();
label.Text = "Test/nCarriage returns";
label.Wrapping = TextWrapping.Wrap;
node.Labels.Add(label);
DiagramContent.Model.Nodes.Add(node);
Sample:http://www.syncfusion.com/downloads/support/forum/119735/ze/labelsample-1641220341
Please let me know if any concerns.
Regards,
Shyam G
Hi Cosimo
Thanks for using Syncfusion products.
We suggest you to set label’s property Wrapping as Wrap to achieve your requirement. if we misunderstood your requirement, could you please provide us more details such as screenshot of your requirement or describe your requirement in detail? This will help us to verify further and provide a better solution to you. please refer the code snippet below.
Code snippet:
BasicShape node = new BasicShape();
//label creation
Label label = new Label();
label.Text = "Test/nCarriage returns";
label.Wrapping = TextWrapping.Wrap;
node.Labels.Add(label);
DiagramContent.Model.Nodes.Add(node);
Sample:http://www.syncfusion.com/downloads/support/forum/119735/ze/labelsample-1641220341
Please let me know if any concerns.
Regards,
Shyam G
BasicShape node = new BasicShape();
//label creation
Label label = new Label();
label.Text = "Test\nCarriage returns";
node.Labels.Add(label);
DiagramContent.Model.Nodes.Add(node);
Please let me know if any concerns.
Regards,
Shyam G