ComponentOne Preview Classic for WinForms: Preview Classic for WinForms Task-Based Help > Setting the Default Zoom Percentage

Setting the Default Zoom Percentage

To set the default zoom percentage, set the ZoomPercent property. Add the following code to the Form_Load event after the EndDoc method:

      Visual Basic

Me.C1PrintPreview1.C1PreviewPane.ZoomPercent = "35"

      C#

this.c1PrintPreview1.C1PreviewPane.ZoomPercent = "35";

This topic illustrates the following:

The default zoom percentage is set to 35%.

 


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.