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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

nodes behind or at the front

Thread ID:





108819 May 14,2013 08:24 AM UTC May 20,2013 11:43 AM UTC WinForms 1
Tags: Diagram
Blanca Calderon
Asked On May 14, 2013 08:24 AM UTC


I have two nodes, a text node and a rectangle node. I would like to put the text at the front and the rectangle behind so that, when I select the text, this is the first you select.

It is like in a word document, when you insert a shape you could put an order, behind, at the front....

Could you help me?





Amsath Ali M [Syncfusion]
Replied On May 20, 2013 11:43 AM UTC

Hi Blanca,


Thanks for your interest in Syncfusion products.


We suggest you to use the Diagram.Controller’s ‘BringToFront’ method to bring the selected node to the front of the Z-order. Please refer the below code snippet to achieve your requirement.


Here is the code:


TextNode txt = new TextNode("Bring the textNode to front", new RectangleF(100, 100, 100, 70));



            Syncfusion.Windows.Forms.Diagram.Rectangle rect = new Syncfusion.Windows.Forms.Diagram.Rectangle(100, 100, 100, 70);






            //Brings the selected nodes (textNode) to the front of the Z-order.



For more information, please visit the below UG documentation link:



Please refer the below attached sample and let us know if you have any queries.



Amsath Ali. M



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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