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.3+c820fb107cc06ae187946bad43db42d71f6faf1c
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