How To Retrieve the Port Information Of a Particular Symbol

You can retrieve port information of a particular symbol using the HandlesHitTesting.GetConnectionPointAtPoint(Node, Point) method.

This method has two parameters: Node and Port.

  • Node specifies the symbol in which the port resides
  • Point specifies the Point object that holds the location of the port.
ConnectionPoint port = HandlesHitTesting.GetConnectionPointAtPoint(circle, new Point(120, 120));
Dim port As ConnectionPoint = HandlesHitTesting.GetConnectionPointAtPoint(circle, New Point(120, 120))