Skip to main content
Row

Worksheet.GetPrintableRange(Boolean) Method

Calculates a worksheet range that can be printed with respect to the specified print area.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

CellRange GetPrintableRange(
    bool usePrintAreaDefinedName
)

Parameters

Name Type Description
usePrintAreaDefinedName Boolean

true, to take into account the print area defined by the _xlnm.Print_Area name; otherwise, false.

Returns

Type Description
CellRange

A CellRange object that is the printable worksheet range.

Remarks

The GetPrintableRange method returns a range that meets conditions listed in the GetPrintableRange method override without parameters. However, if the usePrintAreaDefinedName parameter is true and the _xlnm.Print_Area name defines a range that is contained within the calculated printable range, the GetPrintableRange method returns the print range defined by the _xlnm.Print_Area name.

See Also