SheetView.PaperKind Property
Returns or specifies paper size for a printed sheet.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v21.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
PaperKind | An enumeration member that specifies paper size. |
Exceptions
Type | Description |
---|---|
ArgumentException | Occurs if you assign Custom to the PaperKind property to define custom paper size. Use the SheetView.SetCustomPaperSize method to specify custom dimensions for a printed sheet. |
Remarks
The following example specifies paper size for the first worksheet:
// Select paper size.
workbook.Worksheets[0].ActiveView.PaperKind = System.Drawing.Printing.PaperKind.A4;
See Also