Click or drag to resize
PicoXLSX

WorksheetSetZoomFactor Method

Sets a zoom factor for a given WorksheetSheetViewType. If AUTO_ZOOM_FACTOR, the zoom factor is set to automatic

Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 3.4.2+f55916d49ef2baa43fc7dc8f5c7d751a77c50baf
Syntax
C#
public void SetZoomFactor(
	WorksheetSheetViewType sheetViewType,
	int zoomFactor
)

Parameters

sheetViewType  WorksheetSheetViewType
Sheet view type to apply the zoom factor on
zoomFactor  Int32
Zoom factor in percent
Exceptions
ExceptionCondition
WorksheetExceptionThrows a WorksheetException if the zoom factor is not AUTO_ZOOM_FACTOR or below MIN_ZOOM_FACTOR or above MAX_ZOOM_FACTOR
Remarks
This factor is not the currently set factor. use the property ZoomFactor to set the factor for the current ViewType
See Also