Zoom controls


Author
Message
Craig Browder
Craig Browder
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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
Craig Browder
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
Posts: 9, Visits: 17
That works as we need it to. However, it disables the users ability to manually zoom in and out.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search