Class PageScaleFactorCalculator
Provides methods for calculating the scale factor required to fit worksheet content into a specified number of pages during printing or PDF export.
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 for the worksheet to fit within the page counts specified by 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 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
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. |