Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
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.v19.1.Core.dll

Declaration

Range 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
Range

A Range 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