Back to Devexpress

Worksheet.GetPrintableRange(Boolean) Method

officefileapi-devexpress-dot-spreadsheet-dot-worksheet-dot-getprintablerange-x28-system-dot-boolean-x29.md

latest1.9 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
CellRange GetPrintableRange(
    bool usePrintAreaDefinedName
)
vb
Function GetPrintableRange(
    usePrintAreaDefinedName As Boolean
) As CellRange

Parameters

NameTypeDescription
usePrintAreaDefinedNameBoolean

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

|

Returns

TypeDescription
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

Worksheet Interface

Worksheet Members

DevExpress.Spreadsheet Namespace