Find node object to which port belongs to


I have a nodes with dynamic ports in my diagram.

When I click on any port (assuming that I have port information i.e. portId) - I want to know the node information the port is associated with?


Use the GraphObject.part property. Whether that’s a Node or a Group or a Link or an Adornment depends on what it’s in.