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

Zooming

Thread ID:

Created:

Updated:

Platform:

Replies:

82261 Jun 8,2009 08:23 AM UTC Jun 9,2009 01:37 PM UTC WinForms 5
loading
Tags: Diagram
Veaceslav Cosulet
Asked On June 8, 2009 08:23 AM UTC

Hi.
I have a question about zooming support. In online documentation is written that there are 4 methods
• ZoomIn()
• ZoomOut()
• ZoomToSelection()
• ZoomToActual()

Which Diagram's property they belong to?

How does ZoomTool's ZoomIncrement function at all? Is there also a ZoomDecrement functionality?

Regards, Frank.

Veaceslav Cosulet
Replied On June 8, 2009 11:02 AM UTC

Could you also tell me when "Magnification cant't be so small" occurs, which is the minimum and maximum values for Magnification property and how can I find out the mouse's wheel roll direction in MouseWheelZoom event handler.
Regards, Frank.

Veaceslav Cosulet
Replied On June 8, 2009 12:35 PM UTC

Well, the code below helped me to change the Magnification of a diagram
private void diagram1_MouseWheelZoom(object sender, Syncfusion.Windows.Forms.MouseWheelZoomEventArgs e)
{
diagram1.View.Magnification = diagram1.View.Magnification - e.Delta;
}

But not is what expected. How could this code be improved to see office word like magnification???
Thnaks
Regards, Frank

Veaceslav Cosulet
Replied On June 8, 2009 12:58 PM UTC

private void diagram1_MouseWheelZoom(object sender, Syncfusion.Windows.Forms.MouseWheelZoomEventArgs e)
{
if (e.Delta < 0)
{
int inter = e.Delta + 110;
diagram1.View.Magnification = diagram1.View.Magnification + inter;
}
else
{
int inter = e.Delta - 110;
diagram1.View.Magnification = diagram1.View.Magnification + inter;
}
}

This is my solution to magnify a diagram's view when pressing Ctrl + scrolling mouse wheel. The only thing I need is to know the minimal and maximal values of Magnification property.
Thanks.
Best regards, Frank

Veaceslav Cosulet
Replied On June 8, 2009 01:08 PM UTC

Don't forget please also to answer the question about those 4 zooming methods.
Thanks, Frank

Gowri Manohari D [Syncfusion]
Replied On June 9, 2009 01:37 PM UTC

Hi Frank,

Thanks for choosing Syncfusion Products.

1. All the functions which you have mentioned for Zoom support are Client Side DiagramWebControl methods of Web Form. It is not relevant to Essential Studio Windows Form.Please refer the below link for more details

http://help.syncfusion.com/ug_71_new/diagram/Zooming.html

2. ZoomTool's ZoomIncrement property increments the Magnification value for every mouse button click by 25.ZoomTool does not have property ZoomDecrement


3. For your third requirement

MinimumMagnification of the diagram is 10 and the
MaximumMagnification of the diagram is 1000

Regards,
Gowri

CONFIRMATION

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.

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

;