SheetRender.PageScale

SheetRender.PageScale property

Gets calculated page scale of the sheet. Returns the set scale if Zoom is set. Otherwise, returns the calculated scale according to FitToPagesWide and FitToPagesTall.

public double PageScale { get; }

Examples

Workbook wb = new Workbook("Book1.xlsx");

SheetRender sheetRender = new SheetRender(wb.Worksheets[0], new ImageOrPrintOptions());

//Gets calculated page scale of the sheet.
double pageScale = sheetRender.PageScale;

See Also