Class PaperSize
An Enum that represents different sizes of paper for Excel document printing and page setup.
See https://docs.microsoft.com/en-us/windows/desktop/intl/paper-sizes for more information on windows and Excel paper sizes.
Inheritance
Namespace: IronXL.Printing
Assembly: IronXL.dll
Syntax
public sealed class PaperSize : Enum
PaperSize sets the sheet size a worksheet uses when printed or exported, assigned to IPrintSetup.PaperSize. The common choices are A4 and Letter for everyday documents, Legal for longer pages, A3 and Tabloid for large layouts, and A5 for compact output. Envelope sizes such as EnvelopeDL and many regional variants are also available, and PrinterDefault defers to the printer's own setting. The Excel print setup example configures the print area and page.
worksheet.PrintSetup.PaperSize = PaperSize.A4;Fields
A3
A3 297 x 420 mm
Declaration
public const PaperSize A3
Field Value
| Type | Description |
|---|---|
| PaperSize |
A4
A4 210 x 297 mm
Declaration
public const PaperSize A4
Field Value
| Type | Description |
|---|---|
| PaperSize |
A4EExtra
A4 Extra 9.27 x 12.69 in
Declaration
public const PaperSize A4EExtra
Field Value
| Type | Description |
|---|---|
| PaperSize |
A4Plus
A4 Plus - 210x330 mm
Declaration
public const PaperSize A4Plus
Field Value
| Type | Description |
|---|---|
| PaperSize |
A4Rotated
A4 Rotated - 297x210 mm
Declaration
public const PaperSize A4Rotated
Field Value
| Type | Description |
|---|---|
| PaperSize |
A4Small
A4 Small 210 x 297 mm
Declaration
public const PaperSize A4Small
Field Value
| Type | Description |
|---|---|
| PaperSize |
A4Transverse
A4 Transverse - 210x297 mm
Declaration
public const PaperSize A4Transverse
Field Value
| Type | Description |
|---|---|
| PaperSize |
A5
A5 148 x 210 mm
Declaration
public const PaperSize A5
Field Value
| Type | Description |
|---|---|
| PaperSize |
B4
B4 (JIS) 257 x 364 mm
Declaration
public const PaperSize B4
Field Value
| Type | Description |
|---|---|
| PaperSize |
B5
B5 (JIS) 182 x 257 mm
Declaration
public const PaperSize B5
Field Value
| Type | Description |
|---|---|
| PaperSize |
CSizeSheet
C size sheet
Declaration
public const PaperSize CSizeSheet
Field Value
| Type | Description |
|---|---|
| PaperSize |
DSizeSheet
D size sheet
Declaration
public const PaperSize DSizeSheet
Field Value
| Type | Description |
|---|---|
| PaperSize |
ElevenBySeven
11 x 17 in
Declaration
public const PaperSize ElevenBySeven
Field Value
| Type | Description |
|---|---|
| PaperSize |
Envelope10
US Envelope #10 4 1/8 x 9 1/2
Declaration
public const PaperSize Envelope10
Field Value
| Type | Description |
|---|---|
| PaperSize |
Envelope11
US Envelope #11 4 1/2 x 10 3/8
Declaration
public const PaperSize Envelope11
Field Value
| Type | Description |
|---|---|
| PaperSize |
Envelope12
US Envelope #12 4 3/4 x 11 in
Declaration
public const PaperSize Envelope12
Field Value
| Type | Description |
|---|---|
| PaperSize |
Envelope14
US Envelope #14 5 x 11 1/2
Declaration
public const PaperSize Envelope14
Field Value
| Type | Description |
|---|---|
| PaperSize |
Envelope9
US Envelope #9 3 7/8 x 8 7/8
Declaration
public const PaperSize Envelope9
Field Value
| Type | Description |
|---|---|
| PaperSize |
EnvelopeC3
Envelope C3 324 x 458 mm
Declaration
public const PaperSize EnvelopeC3
Field Value
| Type | Description |
|---|---|
| PaperSize |
EnvelopeC4
Envelope C4 229 x 324 mm
Declaration
public const PaperSize EnvelopeC4
Field Value
| Type | Description |
|---|---|
| PaperSize |
EnvelopeC5
Envelope C5 162 x 229 mm
Declaration
public const PaperSize EnvelopeC5
Field Value
| Type | Description |
|---|---|
| PaperSize |
EnvelopeC6
Envelope C6 114 x 162 mm
Declaration
public const PaperSize EnvelopeC6
Field Value
| Type | Description |
|---|---|
| PaperSize |
EnvelopeDL
Envelope DL 110 x 220mm
Declaration
public const PaperSize EnvelopeDL
Field Value
| Type | Description |
|---|---|
| PaperSize |
EnvelopeMonarch
US Envelope Monarch 3.875 x 7.5 in
Declaration
public const PaperSize EnvelopeMonarch
Field Value
| Type | Description |
|---|---|
| PaperSize |
ESizeSheet
Declaration
public const PaperSize ESizeSheet
Field Value
| Type | Description |
|---|---|
| PaperSize |
Executive
US Executive 7 1/4 x 10 1/2 in
Declaration
public const PaperSize Executive
Field Value
| Type | Description |
|---|---|
| PaperSize |
Folio
Folio 8 1/2 x 13 in
Declaration
public const PaperSize Folio
Field Value
| Type | Description |
|---|---|
| PaperSize |
Ledger
US Ledger 17 x 11 in
Declaration
public const PaperSize Ledger
Field Value
| Type | Description |
|---|---|
| PaperSize |
Legal
US Legal 8 1/2 x 14 in
Declaration
public const PaperSize Legal
Field Value
| Type | Description |
|---|---|
| PaperSize |
Letter
US Letter Small 8 1/2 x 11 in
Declaration
public const PaperSize Letter
Field Value
| Type | Description |
|---|---|
| PaperSize |
LetterRotated
US Letter Rotated 11 x 8 1/2 in
Declaration
public const PaperSize LetterRotated
Field Value
| Type | Description |
|---|---|
| PaperSize |
Note
US Note 8 1/2 x 11 in
Declaration
public const PaperSize Note
Field Value
| Type | Description |
|---|---|
| PaperSize |
PrinterDefault
Default paper size. Works with each printer's default paper setting.
Declaration
public const PaperSize PrinterDefault
Field Value
| Type | Description |
|---|---|
| PaperSize |
Quarto
Quarto 215 x 275 mm
Declaration
public const PaperSize Quarto
Field Value
| Type | Description |
|---|---|
| PaperSize |
Statement
US Statement 5 1/2 x 8 1/2 in
Declaration
public const PaperSize Statement
Field Value
| Type | Description |
|---|---|
| PaperSize |
Tabloid
US Tabloid 11 x 17 in
Declaration
public const PaperSize Tabloid
Field Value
| Type | Description |
|---|---|
| PaperSize |
TenByFourteen
10 x 14 in
Declaration
public const PaperSize TenByFourteen
Field Value
| Type | Description |
|---|---|
| PaperSize |
value__
Declaration
public short value__
Field Value
| Type | Description |
|---|---|
| System.Int16 |