Hi Nagaraj
Thanks for your reply.
I cannot test the sample because there are build errors. the errors that i see are:
(184): ''MinimumSize'' is not a member of ''Syncfusion.Windows.Forms.Diagram.Model''.
(30): Interface ''System.Runtime.Serialization.ISerializable'' is already implemented by base class ''Syncfusion.Windows.Forms.Diagram.SymbolBase''.
(43): ''System.Runtime.Serialization.ISerializable.GetObjectData'' is already implemented by base class ''Syncfusion.Windows.Forms.Diagram.SymbolBase'' and cannot be implemented again.
(31): Interface ''System.Runtime.Serialization.ISerializable'' is already implemented by base class ''Syncfusion.Windows.Forms.Diagram.SymbolBase''.
(44): ''System.Runtime.Serialization.ISerializable.GetObjectData'' is already implemented by base class ''Syncfusion.Windows.Forms.Diagram.SymbolBase'' and cannot be implemented again.
Using the code suggested in your post, i always get as index value equal to zero.
Thanks for your support
Stelios Halkiotis
>Hi Stelios,
Thankyou for your interest in Essential Diagram.
Please use the GetChildIndex() method of the Symbol Class in the Diagram_NodeClick event inorder to get the index of the node contained in the symbol.
[VB]
Private Sub diagram1_NodeClick(ByVal sender As Object, ByVal evtArgs As Syncfusion.Windows.Forms.Diagram.NodeMouseEventArgs) Handles diagram1.NodeClick
Dim y As Integer=Me.diagram1.Model.GetChildIndex(evtArgs.Node)
Please refer the sample attached which demonstrates this usage. In this sample, a Nested Symbol will be loaded in the Form_Load event. When you click on the Symbols you can see the Index number of the clicked symbol in the textbox and its color will be changed appropriately.
Please try this and let us know if this helps.
Thanks,
Nagaraj
NestedSymbol.zip