Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

SheetView.PaperKind Property

Returns or specifies paper size for a printed sheet.

Namespace: DevExpress.Spreadsheet

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

Declaration

PaperKind PaperKind { get; set; }

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