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

Bring the nodes into the view without scrolling the diagram

In diagram control, we have a built-in support to bring the node into the view without scrolling the diagram. The following methods are used to bring the nodes into the view without scrolling the diagram.

BringToView:

The Syncfusion.Windows.Forms.Diagram.Controller’s “BringToView() method is used to bring the given bounding rectangle area as viewable in the diagram. where, we need to pass the bounds area as a parameter.

[C#]

 

[VB]

 

BringToCenter:

The Syncfusion.Windows.Forms.Diagram.Controller’s “BringToCenter()” method is used to bring the given bounding rectangle area as center of the diagram’ view. Here, we need to send the needed bounds area as a parameter. Please refer to the below code example.

[C#]

 

[VB]

 

ScrollToNode:

Also we can bring the particular/selected node into the view without scrolling the diagram by using Syncfusion.Windows.Forms.Diagram.View’s “ScrollToNode()”  method. Please refer to the below code example. 

[C#]

 

[VB]

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8478 02/23/2018 02/23/2018 WinForms Diagram
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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