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

How to add labels to nodes ?

Thread ID:





69300 Oct 23,2007 01:36 PM UTC Oct 24,2007 06:43 AM UTC ASP.NET Web Forms (Classic) 1
Tags: DiagramWebControl
sattar shaikh
Asked On October 23, 2007 01:36 PM UTC

When we create diagram in diagramwebcontrol using web application (Essential Diagram)
at that time can we able to give labels/text to the particular nodes

plz reply me.

Thanks .........

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On October 24, 2007 06:43 AM UTC

Hi Sattar,

Thanks for evaluating Syncfusion products.

Yes. Essential diagram allows the users to add any number of text labels to symbols and links. The labels can be created with Label class and added to a node using label collection editor.

The following code snippet illustrates this.


// Create Shape
Syncfusion.Windows.Forms.Diagram.Rectangle rec = new Syncfusion.Windows.Forms.Diagram.Rectangle(373, 300, 120, 55);
rec.FillStyle.Type = FillStyleType.LinearGradient;
rec.FillStyle.ForeColor = Color.White;
rec.FillStyle.Color = Color.BlueViolet;

// Create Label
Syncfusion.Windows.Forms.Diagram.Label reclbl =new Syncfusion.Windows.Forms.Diagram.Label();
reclbl.Text = "Rectangle";
reclbl.FontStyle.Size = 13;
reclbl.FontStyle.Bold = true;

// Add label to Shape

//Add shape to diagram

Please refer the samples on diagram web that shipped with Essential studio in the below location that displays diagram with labeled nodes.

[Install drive]:\Documents and Settings\Username \My Documents\Syncfusion\EssentialStudio\\Web\diagram.web\Samples\2.0

You can also refer the Online ASP.NET samples in the below location.


And browse through the Diagram.Web section.

Please follow up with any other details in the Direct trac incident you had already created.

Please let us know if you have any other queries.



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