HotXLS Docs

IsFitToPages property

True when the worksheet uses FitToPagesTall or FitToPagesWide scaling. Read only Boolean

Syntax

property IsFitToPages: Boolean;

Remarks

This property reports the selected scaling mode, independently of cached FitToPagesWide and FitToPagesTall values

Setting Zoom to a percentage selects percentage scaling and makes this property False, even if positive fit dimensions remain stored in a loaded Classic workbook

Setting Zoom to False selects fit scaling and makes this property True; retained fit dimensions remain available when switching modes

Example

This example checks whether fit-to-pages scaling is active

Enabled := Workbook.Worksheets[1].PageSetup.IsFitToPages;