Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WorksheetPrintOptions.FitToHeight Property

Gets or sets the number of pages by height in which the worksheet shall fit when printed.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

int FitToHeight { get; set; }

#Property Value

Type Description
Int32

A positive integer value that specifies a number of pages in which the worksheet will fit.

#Property Paths

You can access this nested property as listed below:

Object Type Path to FitToHeight
Worksheet
.PrintOptions .FitToHeight

#Remarks

To scale the content to fit on a specific number of pages by height, set the WorksheetPrintOptions.FitToPage property to true and specify the desired number of pages in the FitToHeight property.

See Also