there is a class GoTextNode which i inherited in GraphNode class.
IN GoTextNode class there is properties like RightPort,LeftPort,–etc,
sir when i create a link from a graphnode PORT to other graphnode PORT ,how can i make link from desired PORT from FromNode to ToNode PORT?
Actually i have made a property in GraphNode Class-
public GoPort FromPort
{
get
{
return base.RightPort;
}
}
but through it,i can’t find desired port when create link?
Well, GoDiagram doesn’t have the notion of a “selected port”, other than a port that started the linking operation in GoToolLinking.
If you want to add the notion of a "port most recently clicked closest to", you can do that by overriding OnSingleClick and remembering the closest port. (Note that the GoText inside the GoTextNode also wants OnSingleClick, so I think you have to override CreateLabel and add your own custom GoText to do this.)