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.
Unfortunately, activation email could not send to your email. Please try again.

Zoom and bring symbol into view

Thread ID:





60304 May 2,2007 08:58 AM May 2,2007 02:23 PM Windows Forms 1
Tags: Diagram
Robin Russell
Asked On May 2, 2007 08:58 AM

Is is possible to zoom into a specific symbol on a diagram. I need to do this on an event so must be done in code rather than the zoom tool.

J.Nagarajan [Syncfusion]
Replied On May 2, 2007 02:23 PM

Hi Robin,

If you want to zoom a symbol in a click event then you can use the symbol's Bounds property. Please refer to the following code snippet

int zoomIncrement=25;
private void button1_Click(object sender, System.EventArgs e)
if(this.diagram1.Controller.SelectionList.Count>0 && symbol1!=null)
symbol1.Bounds=new RectangleF(symbol1.X,symbol1.Y,symbol1.Width+zoomIncrement,symbol1.Height+zoomIncrement);

I have attached the sample for your reference. You can download the sample from the following page.


Please refer to the sample and let me know if you have any questions.



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.

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.