Version

MagnificationInCurrentView Property

Gets or sets the magnification level of the worksheet in the current DisplayOptions.View.
Syntax
'Declaration
 
Public Property MagnificationInCurrentView As Integer
public int MagnificationInCurrentView {get; set;}

Property Value

The magnification level of the worksheet in the current View.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException The assigned value is outside the valid range of magnification levels for a worksheet. The level must be between 10 and 400.
Remarks

Magnifications are stored as percentages of the normal viewing magnification. A value of 100 indicates normal magnification whereas a value of 200 indicates a zoom that is twice the normal viewing magnification.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also