AM
Ajeet M
Syncfusion Team
January 22, 2009 03:00 PM UTC
Hi Richard,
You can access the Ports of the Nodes included in the palette as follows:
------------
Load symbol palette:
this.paletteGroupView.LoadPalette(somePalette);
Get the Node's index, starting from "0" or "Zero" in the symbol palette "somePalette".
Get the Node from the index "nIndex" as follows:
Node someNode = this.paletteGroupView.Palette.Nodes[nindex];
Node someOtherNode = this.paletteGroupView.Palette.Nodes[nindex + 1];
Access the Nodes's ports from the Port's index as "pIndex" as follows:
someNode.Ports[pIndex].TryConnect(someConnector.HeadEndPoint);
someOtherNode.Ports[pIndex].TryConnect(someConnector.TailEndPoint);
------------
Let me know if this helps.
Happy Coding!
-Ajeet