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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Selected Symbol

Thread ID:

Created:

Updated:

Platform:

Replies:

20314 Oct 14,2004 01:31 AM UTC Oct 14,2004 09:02 AM UTC WinForms 1
loading
Tags: Diagram
Jarrod Lloyd
Asked On October 14, 2004 01:31 AM UTC

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

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

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

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

;