Enum PaperSizeType
PaperSizeType enumeration
Represents paper size constants.
public enum PaperSizeType
Values
| Name | Value | Description |
|---|---|---|
| PaperLetter | 1 | Letter (8-1/2 in. x 11 in.) |
| PaperLetterSmall | 2 | Letter Small (8-1/2 in. x 11 in.) |
| PaperTabloid | 3 | Tabloid (11 in. x 17 in.) |
| PaperLedger | 4 | Ledger (17 in. x 11 in.) |
| PaperLegal | 5 | Legal (8-1/2 in. x 14 in.) |
| PaperStatement | 6 | Statement (5-1/2 in. x 8-1/2 in.) |
| PaperExecutive | 7 | Executive (7-1/4 in. x 10-1/2 in.) |
| PaperA3 | 8 | A3 (297 mm x 420 mm) |
| PaperA4 | 9 | A4 (210 mm x 297 mm) |
| PaperA4Small | 10 | A4 Small (210 mm x 297 mm) |
| PaperA5 | 11 | A5 (148 mm x 210 mm) |
| PaperB4 | 12 | JIS B4 (257 mm x 364 mm) |
| PaperB5 | 13 | JIS B5 (182 mm x 257 mm) |
| PaperFolio | 14 | Folio (8-1/2 in. x 13 in.) |
| PaperQuarto | 15 | Quarto (215 mm x 275 mm) |
| Paper10x14 | 16 | 10 in. x 14 in. |
| Paper11x17 | 17 | 11 in. x 17 in. |
| PaperNote | 18 | Note (8-1/2 in. x 11 in.) |
| PaperEnvelope9 | 19 | Envelope #9 (3-7/8 in. x 8-7/8 in.) |
| PaperEnvelope10 | 20 | Envelope #10 (4-1/8 in. x 9-1/2 in.) |
| PaperEnvelope11 | 21 | Envelope #11 (4-1/2 in. x 10-3/8 in.) |
| PaperEnvelope12 | 22 | Envelope #12 (4-1/2 in. x 11 in.) |
| PaperEnvelope14 | 23 | Envelope #14 (5 in. x 11-1/2 in.) |
| PaperCSheet | 24 | C size sheet |
| PaperDSheet | 25 | D size sheet |
| PaperESheet | 26 | E size sheet |
| PaperEnvelopeDL | 27 | Envelope DL (110 mm x 220 mm) |
| PaperEnvelopeC5 | 28 | Envelope C5 (162 mm x 229 mm) |
| PaperEnvelopeC3 | 29 | Envelope C3 (324 mm x 458 mm) |
| PaperEnvelopeC4 | 30 | Envelope C4 (229 mm x 324 mm) |
| PaperEnvelopeC6 | 31 | Envelope C6 (114 mm x 162 mm) |
| PaperEnvelopeC65 | 32 | Envelope C65 (114 mm x 229 mm) |
| PaperEnvelopeB4 | 33 | Envelope B4 (250 mm x 353 mm) |
| PaperEnvelopeB5 | 34 | Envelope B5 (176 mm x 250 mm) |
| PaperEnvelopeB6 | 35 | Envelope B6 (176 mm x 125 mm) |
| PaperEnvelopeItaly | 36 | Envelope Italy (110 mm x 230 mm) |
| PaperEnvelopeMonarch | 37 | Envelope Monarch (3-7/8 in. x 7-1/2 in.) |
| PaperEnvelopePersonal | 38 | Envelope (3-5/8 in. x 6-1/2 in.) |
| PaperFanfoldUS | 39 | U.S. Standard Fanfold (14-7/8 in. x 11 in.) |
| PaperFanfoldStdGerman | 40 | German Standard Fanfold (8-1/2 in. x 12 in.) |
| PaperFanfoldLegalGerman | 41 | German Legal Fanfold (8-1/2 in. x 13 in.) |
| PaperISOB4 | 42 | B4 (ISO) 250 x 353 mm |
| PaperJapanesePostcard | 43 | Japanese Postcard (100mm × 148mm) |
| Paper9x11 | 44 | 9? × 11? |
| Paper10x11 | 45 | 10? × 11? |
| Paper15x11 | 46 | 15? × 11? |
| PaperEnvelopeInvite | 47 | Envelope Invite(220mm × 220mm) |
| PaperLetterExtra | 50 | US Letter Extra 9 \275 x 12 in |
| PaperLegalExtra | 51 | US Legal Extra 9 \275 x 15 in |
| PaperTabloidExtra | 52 | US Tabloid Extra 11.69 x 18 in |
| PaperA4Extra | 53 | A4 Extra 9.27 x 12.69 in |
| PaperLetterTransverse | 54 | Letter Transverse 8 \275 x 11 in |
| PaperA4Transverse | 55 | A4 Transverse 210 x 297 mm |
| PaperLetterExtraTransverse | 56 | Letter Extra Transverse 9\275 x 12 in |
| PaperSuperA | 57 | SuperA/SuperA/A4 227 x 356 mm |
| PaperSuperB | 58 | SuperB/SuperB/A3 305 x 487 mm |
| PaperLetterPlus | 59 | US Letter Plus 8.5 x 12.69 in |
| PaperA4Plus | 60 | A4 Plus 210 x 330 mm |
| PaperA5Transverse | 61 | A5 Transverse 148 x 210 mm |
| PaperJISB5Transverse | 62 | B5 (JIS) Transverse 182 x 257 mm |
| PaperA3Extra | 63 | A3 Extra 322 x 445 mm |
| PaperA5Extra | 64 | A5 Extra 174 x 235 mm |
| PaperISOB5Extra | 65 | B5 (ISO) Extra 201 x 276 mm |
| PaperA2 | 66 | A2 420 x 594 mm |
| PaperA3Transverse | 67 | A3 Transverse 297 x 420 mm |
| PaperA3ExtraTransverse | 68 | A3 Extra Transverse 322 x 445 mm |
| PaperJapaneseDoublePostcard | 69 | Japanese Double Postcard 200 x 148 mm |
| PaperA6 | 70 | A6 105 x 148 mm |
| PaperJapaneseEnvelopeKaku2 | 71 | Japanese Envelope Kaku #2 |
| PaperJapaneseEnvelopeKaku3 | 72 | Japanese Envelope Kaku #3 |
| PaperJapaneseEnvelopeChou3 | 73 | Japanese Envelope Chou #3 |
| PaperJapaneseEnvelopeChou4 | 74 | Japanese Envelope Chou #4 |
| PaperLetterRotated | 75 | 11in × 8.5in |
| PaperA3Rotated | 76 | 420mm × 297mm |
| PaperA4Rotated | 77 | 297mm × 210mm |
| PaperA5Rotated | 78 | 210mm × 148mm |
| PaperJISB4Rotated | 79 | B4 (JIS) Rotated 364 x 257 mm |
| PaperJISB5Rotated | 80 | B5 (JIS) Rotated 257 x 182 mm |
| PaperJapanesePostcardRotated | 81 | Japanese Postcard Rotated 148 x 100 mm |
| PaperJapaneseDoublePostcardRotated | 82 | Double Japanese Postcard Rotated 148 x 200 mm |
| PaperA6Rotated | 83 | A6 Rotated 148 x 105 mm |
| PaperJapaneseEnvelopeKaku2Rotated | 84 | Japanese Envelope Kaku #2 Rotated |
| PaperJapaneseEnvelopeKaku3Rotated | 85 | Japanese Envelope Kaku #3 Rotated |
| PaperJapaneseEnvelopeChou3Rotated | 86 | Japanese Envelope Chou #3 Rotated |
| PaperJapaneseEnvelopeChou4Rotated | 87 | Japanese Envelope Chou #4 Rotated |
| PaperJISB6 | 88 | B6 (JIS) 128 x 182 mm |
| PaperJISB6Rotated | 89 | B6 (JIS) Rotated 182 x 128 mm |
| Paper12x11 | 90 | 12 x 11 in |
| PaperJapaneseEnvelopeYou4 | 91 | Japanese Envelope You #4 |
| PaperJapaneseEnvelopeYou4Rotated | 92 | Japanese Envelope You #4 Rotated |
| PaperPRC16K | 93 | PRC 16K 146 x 215 mm |
| PaperPRC32K | 94 | PRC 32K 97 x 151 mm |
| PaperPRCBig32K | 95 | PRC 32K(Big) 97 x 151 mm |
| PaperPRCEnvelope1 | 96 | PRC Envelope #1 102 x 165 mm |
| PaperPRCEnvelope2 | 97 | PRC Envelope #2 102 x 176 mm |
| PaperPRCEnvelope3 | 98 | PRC Envelope #3 125 x 176 mm |
| PaperPRCEnvelope4 | 99 | PRC Envelope #4 110 x 208 mm |
| PaperPRCEnvelope5 | 100 | PRC Envelope #5 110 x 220 mm |
| PaperPRCEnvelope6 | 101 | PRC Envelope #6 120 x 230 mm |
| PaperPRCEnvelope7 | 102 | PRC Envelope #7 160 x 230 mm |
| PaperPRCEnvelope8 | 103 | PRC Envelope #8 120 x 309 mm |
| PaperPRCEnvelope9 | 104 | PRC Envelope #9 229 x 324 mm |
| PaperPRCEnvelope10 | 105 | PRC Envelope #10 324 x 458 mm |
| PaperPRC16KRotated | 106 | PRC 16K Rotated |
| PaperPRC32KRotated | 107 | PRC 32K Rotated |
| PaperPRCBig32KRotated | 108 | PRC 32K(Big) Rotated |
| PaperPRCEnvelope1Rotated | 109 | PRC Envelope #1 Rotated 165 x 102 mm |
| PaperPRCEnvelope2Rotated | 110 | PRC Envelope #2 Rotated 176 x 102 mm |
| PaperPRCEnvelope3Rotated | 111 | PRC Envelope #3 Rotated 176 x 125 mm |
| PaperPRCEnvelope4Rotated | 112 | PRC Envelope #4 Rotated 208 x 110 mm |
| PaperPRCEnvelope5Rotated | 113 | PRC Envelope #5 Rotated 220 x 110 mm |
| PaperPRCEnvelope6Rotated | 114 | PRC Envelope #6 Rotated 230 x 120 mm |
| PaperPRCEnvelope7Rotated | 115 | PRC Envelope #7 Rotated 230 x 160 mm |
| PaperPRCEnvelope8Rotated | 116 | PRC Envelope #8 Rotated 309 x 120 mm |
| PaperPRCEnvelope9Rotated | 117 | PRC Envelope #9 Rotated 324 x 229 mm |
| PaperPRCEnvelope10Rotated | 118 | PRC Envelope #10 Rotated 458 x 324 mm |
| PaperB3 | 300 | usual B3(13.9 x 19.7 in) |
| PaperBusinessCard | 301 | Business Card(90mm x 55 mm) |
| PaperThermal | 302 | Thermal(3 x 11 in) |
| Custom | 0 | Represents the custom paper size. |
Examples
namespace AsposeCellsExamples
{
using Aspose.Cells;
using System;
public class PaperSizeTypeDemo
{
public static void PaperSizeTypeExample()
{
// Create a new workbook
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
// Access the PageSetup of the worksheet
PageSetup pageSetup = worksheet.PageSetup;
// Set the paper size to A4
pageSetup.PaperSize = PaperSizeType.PaperA4;
// Set the paper size to Legal
pageSetup.PaperSize = PaperSizeType.PaperLegal;
// Set the paper size to Custom
pageSetup.PaperSize = PaperSizeType.Custom;
// Save the workbook
workbook.Save("PaperSizeTypeExample.xlsx");
return;
}
}
}
See Also
- namespace Aspose.Cells
- assembly Aspose.Cells