Profile Picture

Zoom controls

Posted By Craig Browder 10 Years Ago
Author
Message
Craig Browder
Problem Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 9, Visits: 17
We are working with the nDrawingView. There is a method called "Fit". When we call this method programmatically, the zoom percentage is set to different amounts based on the number of shapes on the document, but they are all between 16 and 20%. When the UI is shown and I select fit from the zoom drop down menu on the toolbars, it zooms properly to 87%. Can you please tell me why the programmatic call to fit is not working properly?

Nevron Support
Posted 10 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
Hi,

To make the view fit the available area, you should set the ViewLayout property of the drawing view to Fit:

view.ViewLayout = ViewLayout.Fit;


This causes the drawing view to execute the Fit method you are asking about and then repaint itself and is the best way to change the view layout of the drawing view.

Best Regards,
Nevron Support Team



Craig Browder
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 9, Visits: 17
That works as we need it to. However, it disables the users ability to manually zoom in and out.




Similar Topics


Reading This Topic