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.v22.1.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;

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PaperKind property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also