We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

sequence

Thread ID:

Created:

Updated:

Platform:

Replies:

21205 Nov 4,2004 12:48 PM UTC Nov 9,2004 03:44 PM UTC Windows Forms 5
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On November 4, 2004 12:48 PM UTC

Hi Arun, 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. Thanks, Chris

Arun Srinivasan [Syncfusion]
Replied On November 5, 2004 11:35 AM UTC

Hi Chris, 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. Regards Arun

Administrator [Syncfusion]
Replied On November 8, 2004 03:27 PM UTC

Hi Arun, 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? Thanks, Chris

Administrator [Syncfusion]
Replied On November 8, 2004 09:24 PM UTC

Hi, Assuming we can get incoming Link and Outgoing Link, how can I find symbols which are connected on this Link? Thanks, Chris

Arun Srinivasan [Syncfusion]
Replied On November 8, 2004 09:54 PM UTC

Hi Chris 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); } } Regards Arun

Administrator [Syncfusion]
Replied On November 9, 2004 03:44 PM UTC

Arun, Thanks. It works. Chris

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;