Hi Leo,
I am sorry about this delay in getting back to you on this issue. As for this, if your intension is to find the target port on a symbol then check whether the Link.ToNode is valid and if so get the SourcePort/TargetPort.
Kindly look at the attached sample that shows the above mentioned informations.
Please let us know if you have any further queries. We will be glad to assist you.
Thanks for your support to Syncfusion.
Regards,
Meera.
CreatingLinks.zip