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

Zoom and bring symbol into view

Thread ID:





60304 May 2,2007 12:58 PM UTC May 2,2007 06:23 PM UTC WinForms 1
Tags: Diagram
Robin Russell
Asked On May 2, 2007 12:58 PM UTC

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 06:23 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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