Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

How to: Zoom In and Out of a Worksheet

This example demonstrates how to zoom in to a worksheet view (Worksheet.ActiveView). To do this, set the WorksheetView.Zoom property to an integer value that specifies the required zoom factor for a worksheet view.

Note

To specify how a worksheet should be scaled when it is printed, use the WorksheetPrintOptions.Scale property of the object accessed via Worksheet.PrintOptions. Refer to the How to: Specify Print Settings document for details on how to specify print options for a worksheet.

View Example

// Zoom in to the worksheet view. 
workbook.Worksheets[0].ActiveView.Zoom = 150;

The image below shows how the worksheet view can be zoomed.

SpreadsheetControl_Worksheet_ActiveView_Zoom

See Also