If I have 20 symbols in a digram, then I connect them using directed or just link.
How can I determine the sequence (order)? what I am trying to do is to amke a flow chart and interpret it according drawing step by step.
There also three port and four port symbol in my diagram, for example conditional loop. If -Then _Else will have four port, I need to know the data flow in/out.
ASArun Srinivasan Syncfusion Team November 5, 2004 06:35 AM
1. As noted in this forums post, you will have to implement a mechanism with your application to handle this.
2. You can use the IGraphNode and the IGraphEdge interfaces to determine links coming in and going out of a Symbol. Refer to this forums post that also includes a sample which shows how you can have different colors for links coming in/ going out of a Symbol.
ADAdministrator Syncfusion Team November 8, 2004 10:27 AM
Here is what I have done.
1, I create customs symbols in palette, and drag them into a diagram
2,Link all symbols with order
3, I can itenerate all Nodes and downcast node to my custom symbol class.
Here is what I want to do--Loop all symbols, and find out the connection sequence.
in your changing in/out link color example, how can I find symbols which connected to rather than links?
So could you make another example to show how connected symbols will change colors?
ADAdministrator Syncfusion Team November 8, 2004 04:24 PM
Assuming we can get incoming Link and Outgoing Link, how can I find symbols which are connected on this Link?
ASArun Srinivasan Syncfusion Team November 8, 2004 04:54 PM
As noted in the sample posted you could use the IGraphEdge interface as demonstrated by the following code snippet to determine the nodes (Symbols) connected to a Link:
private void GetLinkSymbols_Click(object sender, System.EventArgs e)
if ((this.diagram1.SelectionList.Count == 1) || (this.diagram1.SelectionList.First.GetType() == typeof(Link)))
IGraphEdge curLink = this.diagram1.SelectionList.First as IGraphEdge;
INode fromNode = curLink.FromNode as INode;
INode toNode = curLink.ToNode as INode;
MessageBox.Show("This link is between: " + fromNode.Name + " and " + toNode.Name);
ADAdministrator Syncfusion Team November 9, 2004 10:44 AM