The PageSetup class represents the page layout properties of a printed worksheet.

 public class PageSetup
Public Class PageSetup

To return a PageSetup object, use Worksheet.PageSetup.


          ExcelApplication xla = new ExcelApplication();
          Workbook wb = xla.Create();
          PageSetup ps = wb.Worksheets[0].PageSetup;
        

          Dim xla As New ExcelApplication()
          Dim wb As Workbook = xla.Create()
          Dim ps As PageSetup = wb.Worksheets(0).PageSetup
        

Name

Description

BottomMargin

CenterFooter

CenterHeader

CenterHorizontally

CenterVertically

FirstPageNumber

FirstPageNumberAuto

FitToPagesTall

FitToPagesWide

FooterMargin

HeaderMargin

LeftFooter

LeftHeader

LeftMargin

Orientation

PaperSize

PrintArea

PrintAsDraft

PrintCellErrorsAs

PrintComments

PrintCommentsAtEnd

PrintGridlines

PrintHeadings

PrintInBlackAndWhite

PrintOrder

PrintTitles

RightFooter

RightHeader

RightMargin

TopMargin

UseZoom

Zoom

Name

Description

GetFooter(HeaderFooterSection.Section)

GetHeader(HeaderFooterSection.Section)

SetPrintTitleColumns(Int32, Int32)

SetPrintTitleRows(Int32, Int32)

Name

Description

CellErrorsAs

PageOrientation

PagePaperSize

PagePrintOrder