ClassPageScaleFactorCalculator
Provides methods for calculating the scale factor required to fit worksheet content into a specified number of pages during printing or PDF export.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Layout
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public static class PageScaleFactorCalculator
Inheritance: objectPageScaleFactorCalculator
Methods
CalculateScaleAccordingToFitToPages(Worksheet)
Calculates the maximum scale factor for the worksheet to fit within the page counts specified by FitToPagesWide and FitToPagesTall.
Declaration
public static Size CalculateScaleAccordingToFitToPages(Worksheet worksheet)
Parameters
worksheet
The worksheet.
Returns
Size
The resulting scale factor.
CalculateScaleAccordingToFitToPages(Worksheet, IEnumerable<CellRange>)
Calculates the maximum scale factor for the specified ranges to fit within the page counts specified by FitToPagesWide and FitToPagesTall.
Declaration
public static Size CalculateScaleAccordingToFitToPages(Worksheet worksheet, IEnumerable<CellRange> includedRanges)
Parameters
worksheet
The worksheet.
includedRanges
All the ranges that will be included in the page.
Returns
Size
The resulting scale factor.