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. Image for the cookie policy date

Symbol Type On diagram

I've got an issue 
how can I have type of a symbol that used in a diagram programmatically
for example I need to know that this symbol is a LineConnector or a Contact or something Else!!
FullName property is not my need ! I Need The type 

Best Regards 

1 Reply

DT Deepa Thiruppathy Syncfusion Team December 21, 2022 12:27 PM UTC

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();




If we misunderstood your requirement, then please share your requirement with more details.


Deepa Thiruppathy

Note: If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.

Live Chat Icon For mobile
Up arrow icon