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. Image for the cookie policy date

Help, is there example to add TextNode to DiagramProperties

Help, is there example to add TextNode to DiagramProperties

How i add a node to the model

is there a example in mvc version 13.1450.0.21

Beforehand thank you very much

1 Reply

SG Shyam G Syncfusion Team July 28, 2015 09:27 AM UTC

Hi Scary

Thanks for using Syncfusion products.

We have created a sample to achieve your requirement and it is available in the below link for download. Please refer the code snippet and online UG documentation link below which represent how to create a text node.

Online UG documentation link:http://help.syncfusion.com/ug/aspnetmvc/Documents/nodeshapes.htm

Code snippet:

//creation of diagram properties
DiagramProperties model = new DiagramProperties();
 //creation of text node

TextNode node = new TextNode();

 TextBlock block = new TextBlock();            

  block.Text = "TextNode";

  node.TextBlock = block;

//adding text node into model


Please let me know if any concerns.

Shyam G

Live Chat Icon For mobile
Up arrow icon