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.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Layout

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
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

cs-api-definition
public static Size CalculateScaleAccordingToFitToPages(Worksheet worksheet)

Parameters

worksheet

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

cs-api-definition
public static Size CalculateScaleAccordingToFitToPages(Worksheet worksheet, IEnumerable<CellRange> includedRanges)

Parameters

worksheet

Worksheet

The worksheet.

includedRanges

IEnumerable<CellRange>

All the ranges that will be included in the page.

Returns

Size

The resulting scale factor.