The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

WorksheetView.PaperKind Property

Gets or sets a value that specifies the paper size used when a worksheet is being printed.

Namespace: DevExpress.Spreadsheet

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

Declaration

PaperKind PaperKind { get; set; }
Property PaperKind As PaperKind
PaperKind PaperKind { get; set; }
Property PaperKind As PaperKind
PaperKind PaperKind { get; set; }
Property PaperKind As PaperKind

Property Value

Type Description
PaperKind

One of the PaperKind enumeration values.

Property Value

Type Description
PaperKind

One of the PaperKind enumeration values.

Property Value

Type Description
PaperKind

One of the PaperKind enumeration values.

Examples

This example demonstrates how to set the paper size of worksheet pages via the WorksheetView.PaperKind property of the worksheet view object accessed via Worksheet.ActiveView. The PaperKind enumerator lists available page sizes.

Note

The WorksheetView.PaperKind property value is used when worksheet pages are printed. To learn how to specify other worksheet print options, see the How to: Specify Print Settings document.

// Select the page's paper size.
workbook.Worksheets[0].ActiveView.PaperKind = System.Drawing.Printing.PaperKind.A4;
See Also