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.
Unfortunately, activation email could not send to your email. Please try again.

Help, is there example to add TextNode to DiagramProperties

Thread ID:

Created:

Updated:

Platform:

Replies:

119743 Jul 27,2015 08:33 PM Jul 28,2015 05:27 AM ASP.NET MVC 1
loading
Tags: Diagram
scarymorfeo
Asked On July 27, 2015 08:33 PM

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 05:27 AM

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
  model.Nodes.Add(node);

Sample:http://www.syncfusion.com/downloads/support/forum/119743/ze/textnodesamplemvc-1538695126


Please let me know if any concerns.

Regards,
Shyam G


CONFIRMATION

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.

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.

;