Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Centering all nodes on the diagram view (Read 2347 times)
Ismail
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Dec 11th, 2020
Centering all nodes on the diagram view
Dec 12th, 2020 at 2:28am
Print Post  
I can zoom in, zoom out, resize to fit the nodes, but I can't figure out how to center the entire flowchart on the view.
There's the Move method that I can use to move each node one by one, by a single Center on the entire flowchart would be very useful.
I am sure there's such a method but I can't see it.

Ismail
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Centering all nodes on the diagram view
Reply #1 - Dec 12th, 2020 at 9:52am
Print Post  
Try ZoomToFit / ZoomToRect methods of DiagramView to show the entire diagram or parts of it. The BringIntoView method will center on specified node if the node is not already shown in current viewport. These methods just set ScrollX, ScrollY, ZoomFactor properties, and you can implement your own viewport operations using the latter.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint