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

Help, is there example to add TextNode to DiagramProperties

Thread ID:





119743 Jul 28,2015 12:33 AM UTC Jul 28,2015 09:27 AM UTC ASP.NET MVC 1
Tags: Diagram
Asked On July 28, 2015 12:33 AM UTC

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

Shyam G [Syncfusion]
Replied On 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


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