Hi
Mohammad
Requirement: How to get the symbol type
You can get the symbol type using GetType
method. We have shown the node type in the NodeSelected event.
Code snippet:
//Adding
NodeSelected event.
diagram1.EventSink.NodeSelected += EventSink_NodeSelected;
private void
EventSink_NodeSelected(NodeSelectedEventArgs evtArgs)
{
//Get and show the type of a
node.
var type =
evtArgs.Node.GetType();
MessageBox.Show(type.Name);
}
|
If we misunderstood your requirement, then
please share your requirement with more details.
Regards,
Deepa Thiruppathy
Note: If this post is helpful, please consider Accepting it as the solution so
that other members can locate it more quickly.