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.

Selected Symbol

Thread ID:





20314 Oct 13,2004 09:31 PM Oct 14,2004 05:02 AM Windows Forms 1
Tags: Diagram
Jarrod Lloyd
Asked On October 13, 2004 09:31 PM

Hi, Does anybody know how to determine the currently selected node on a diagram? Thanks

Administrator [Syncfusion]
Replied On October 14, 2004 05:02 AM

Hi Jarrod, You can use the Diagram''s Controller''s SelectionList which returns a list of nodes that are currently selected. Here is a code snippet: if (this.diagram1.Controller.SelectionList.Count>0) { IEnumerator selectednodes= this.diagram1.Controller.SelectionList.GetEnumerator(); string nodename = ""; while (selectednodes.MoveNext()) { INode node = selectednodes.Current as INode; nodename += node.Name.ToString() + "\r\n"; } MessageBox.Show(nodename, "Currently Selected Node(s)"); } else { MessageBox.Show("No nodes selected", "Currently Selected Node(s)"); } Regards Arun


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.

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.