Class PageScaleFactorCalculator
Provides method for calculating the scale factor that needs to be set to a worksheet in order for it to fit in a specified number of pages when printed or exported to PDF.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Layout
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public static class PageScaleFactorCalculator
Methods
CalculateScaleAccordingToFitToPages(Worksheet)
Calculates the maximum scale factor that can be set to a worksheet in order for it to fit into the number of pages specified in the FitToPagesWide and FitToPagesTall.
Declaration
public static Size CalculateScaleAccordingToFitToPages(Worksheet worksheet)
Parameters
Worksheet
worksheet
The worksheet. |
Returns
System.Windows.Size
The resulting scale factor. |
CalculateScaleAccordingToFitToPages(Worksheet, IEnumerable<CellRange>)
Calculates the maximum scale factor that can be set to a worksheet in order for the specified ranges to fit into the number of pages specified in the FitToPagesWide and FitToPagesTall.
Declaration
public static Size CalculateScaleAccordingToFitToPages(Worksheet worksheet, IEnumerable<CellRange> includedRanges)
Parameters
Worksheet
worksheet
The worksheet. |
System.Collections.Generic.IEnumerable<CellRange>
includedRanges
All the ranges that will be included in the page. |
Returns
System.Windows.Size
The resulting scale factor. |