Click or drag to resize

IPageSetup Properties

The IPageSetup type exposes the following members.

Properties
Name Description
Public property AutoFirstPageNumber
Indicates whether FirstPageNumber is set to Auto or not.
(Inherited from IPageSetupBase .)
Public property BackgoundImage
Gets / sets background image.
(Inherited from IPageSetupBase .)
Public property BlackAndWhite
True if elements of the document will be printed in black and white. Read / write Boolean.
(Inherited from IPageSetupBase .)
Public property BottomMargin
Returns or sets the size of the bottom margin, in inches. Read / write Double.
(Inherited from IPageSetupBase .)
Public property CenterFooter
Returns or sets the center part of the footer. Read / write String.
(Inherited from IPageSetupBase .)
Public property CenterFooterImage
Gets / set image for center part of the footer.
(Inherited from IPageSetupBase .)
Public property CenterHeader
Returns or sets the center part of the header. Read / write String.
(Inherited from IPageSetupBase .)
Public property CenterHeaderImage
Gets / set image for center part of the header.
(Inherited from IPageSetupBase .)
Public property CenterHorizontally
True if the sheet is centered horizontally on the page when it is printed. Read / write Boolean.
(Inherited from IPageSetupBase .)
Public property CenterVertically
True if the sheet is centered vertically on the page when it is printed. Read / write Boolean.
(Inherited from IPageSetupBase .)
Public property Copies
Number of copies to print.
(Inherited from IPageSetupBase .)
Public property Draft
True if the sheet will be printed without graphics. Read / write Boolean.
(Inherited from IPageSetupBase .)
Public property FirstPageNumber
Returns or sets the first page number that will be used when this sheet is printed. If xlAutomatic, Microsoft Excel chooses the first page number. The default is xlAutomatic. Read / write Long.
(Inherited from IPageSetupBase .)
Public property FitToPagesTall
Returns or sets the number of pages tall the worksheet will be scaled to when it is printed. Applies only to worksheets. Read / write int.
Public property FitToPagesWide
Returns or sets the number of pages wide the worksheet will be scaled to when it is printed. Applies only to worksheets. Read / write int.
Public property FooterMarginInch
Returns or sets the distance from the bottom of the page to the footer, in inches. Read / write Double.
(Inherited from IPageSetupBase .)
Public property HeaderMarginInch
Returns or sets the distance from the top of the page to the header, in inches. Read / write Double.
(Inherited from IPageSetupBase .)
Public property IsFitToPage
Indicates whether fit to page mode is selected.
Public property IsPrintGridlines
True if cell gridlines are printed on the page. Applies only to worksheets. Read / write Boolean.
Public property IsPrintHeadings
True if row and column headings are printed with this page. Applies only to worksheets. Read / write Boolean.
Public property IsSummaryColumnRight
Indicates whether summary columns will appear right of the detail in outlines.
Public property IsSummaryRowBelow
Indicates whether summary rows will appear below detail in outlines.
Public property LeftFooter
Returns or sets the left part of the footer. Read / write String. &L Left aligns the characters that follow. &C Centers the characters that follow. &R Right aligns the characters that follow. &E Turns double-underline printing on or off. &X Turns superscript printing on or off. &Y Turns subscript printing on or off. &B Turns bold printing on or off. &I Turns italic printing on or off. &U Turns underline printing on or off. &S Turns strikethrough printing on or off. &D Prints the current date. &T Prints the current time. &F Prints the name of the document. &A Prints the name of the workbook tab. &P Prints the page number. &P+number Prints the page number plus the specified number. &P-number Prints the page number minus the specified number. && Prints a single ampersand. & "fontname" Prints the characters that follow in the specified font. Be sure to include the double quotation marks. &nn Prints the characters that follow in the specified font size. Use a two-digit number to specify a size in points. &N Prints the total number of pages in the document.
(Inherited from IPageSetupBase .)
Public property LeftFooterImage
Gets / set image for left part of the footer.
(Inherited from IPageSetupBase .)
Public property LeftHeader
Returns or sets the left part of the header. Read / write String.
(Inherited from IPageSetupBase .)
Public property LeftHeaderImage
Gets / set image for left part of the header.
(Inherited from IPageSetupBase .)
Public property LeftMargin
Returns or sets the size of the left margin, in inches. Read / write Double.
(Inherited from IPageSetupBase .)
Public property Order
Returns or sets the order that Microsoft Excel uses to number pages when printing a large worksheet. Read / write ExcelOrder.
(Inherited from IPageSetupBase .)
Public property Orientation
Portrait or landscape printing mode. Read / write ExcelPageOrientation.
(Inherited from IPageSetupBase .)
Public property PaperSize
Returns or sets the size of the paper. Read / write ExcelPaperSize.
(Inherited from IPageSetupBase .)
Public property Parent
Gets the parent object of the current instance.
(Inherited from IExcelApplication .)
Public property PrintArea
Returns or sets the range to be printed, as a string using A1-style references in the language of the macro. Read / write String.
Public property PrintComments
Returns or sets the way comments are printed with the sheet. Read / write ExcelPrintLocation.
(Inherited from IPageSetupBase .)
Public property PrintErrors
Sets or returns an ExcelPrintErrors constant specifying the type of print error displayed. This feature allows users to suppress the display of error values when printing a worksheet. Read / write.
(Inherited from IPageSetupBase .)
Public property PrintNotes
True if cell notes are printed as end notes with the sheet. Applies only to worksheets. Read / write Boolean.
(Inherited from IPageSetupBase .)
Public property PrintQuality
Returns or sets the print quality. Read / write ushort.
(Inherited from IPageSetupBase .)
Public property PrintTitleColumns
Returns or sets the columns that contain the cells to be repeated on the left side of each page, as a string in A1-style notation in the language of the macro. Read / write String.
Public property PrintTitleRows
Returns or sets the rows that contain the cells to be repeated at the top of each page, as a string in A1-style notation in the language of the macro. Read / write String.
Public property RightFooter
Returns or sets the right part of the footer. Read / write String.
(Inherited from IPageSetupBase .)
Public property RightFooterImage
Gets / set image for right part of the footer.
(Inherited from IPageSetupBase .)
Public property RightHeader
Returns or sets the right part of the header. Read / write String.
(Inherited from IPageSetupBase .)
Public property RightHeaderImage
Gets / set image for right part of the header.
(Inherited from IPageSetupBase .)
Public property RightMargin
Returns or sets the size of the right margin, in inches. Read / write Double.
(Inherited from IPageSetupBase .)
Public property TopMargin
Returns or sets the size of the top margin, in inches. Read / write Double.
(Inherited from IPageSetupBase .)
Public property Zoom
Returns or sets a percentage (between 10 and 400 percent) by which Microsoft Excel will scale the worksheet for printing. Applies only to worksheets. Read / write ushort.
(Inherited from IPageSetupBase .)
Top
See Also