|117123||Aug 18,2014 05:39 AM||Aug 20,2014 04:14 AM||Windows Forms||1|
I’m using syncfusion Windows Forum. I created sample palette. And successfully I can drop symbols in the diagram. However, I want to add labels to those symbols (add the symbols by VB code).
Also those symbols have Property pages. And I want to display some of those properties in the diagram.
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:
'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"
Please try the attached sample and let us know if any 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.