Hi Malik,
Thanks for using Syncfusion
product.
We suggest you to use diagram’s
“Label” to add the label for the respected “Nodes” also we suggest you to use
diagram’s “PropertyEditor” to set view the property of the selected Nodes.
Please refer the below code snippet and sample for your reference.
Here is the code
snippet:
[VB]
'Displaying diagram property to the
diagram
propertyEditor1.Diagram = Me.diagram1
'Adding Symbol to the Symbol palattee
Dim sym As New SymbolPalette()
sym.Name = "Symbols"
Dim ellip As New Ellipse(100, 100, 100, 70)
'Adding Label to the Node
Dim lbl As New
Syncfusion.Windows.Forms.Diagram.Label()
lbl.Text = "Ellipse-1"
ellip.Labels.Add(lbl)
sym.AppendChild(ellip)
Please try the attached sample and let us know if any queries.
Regards,
Ashok Kumar.
Attachment:
VB_5651ef50.zip