IPageSetup Properties |
The IPageSetup type exposes the following members.
| Name | Description | |
|---|---|---|
|
|
AutoFirstPageNumber |
Indicates whether FirstPageNumber is set to Auto or not.
(Inherited from
IPageSetupBase
.)
|
|
|
BackgoundImage |
Gets / sets background image.
(Inherited from
IPageSetupBase
.)
|
|
|
BlackAndWhite |
True if elements of the document will be printed in black and white.
Read / write Boolean.
(Inherited from
IPageSetupBase
.)
|
|
|
BottomMargin |
Returns or sets the size of the bottom margin, in inches.
Read / write Double.
(Inherited from
IPageSetupBase
.)
|
|
|
CenterFooter |
Returns or sets the center part of the footer. Read / write String.
(Inherited from
IPageSetupBase
.)
|
|
|
CenterFooterImage |
Gets / set image for center part of the footer.
(Inherited from
IPageSetupBase
.)
|
|
|
CenterHeader |
Returns or sets the center part of the header. Read / write String.
(Inherited from
IPageSetupBase
.)
|
|
|
CenterHeaderImage |
Gets / set image for center part of the header.
(Inherited from
IPageSetupBase
.)
|
|
|
CenterHorizontally |
True if the sheet is centered horizontally on the page when it is
printed. Read / write Boolean.
(Inherited from
IPageSetupBase
.)
|
|
|
CenterVertically |
True if the sheet is centered vertically on the page when it is
printed. Read / write Boolean.
(Inherited from
IPageSetupBase
.)
|
|
|
Copies |
Number of copies to print.
(Inherited from
IPageSetupBase
.)
|
|
|
Draft |
True if the sheet will be printed without graphics.
Read / write Boolean.
(Inherited from
IPageSetupBase
.)
|
|
|
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
.)
|
|
|
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.
|
|
|
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.
|
|
|
FooterMarginInch |
Returns or sets the distance from the bottom of the page to the footer,
in inches. Read / write Double.
(Inherited from
IPageSetupBase
.)
|
|
|
HeaderMarginInch |
Returns or sets the distance from the top of the page to the header,
in inches. Read / write Double.
(Inherited from
IPageSetupBase
.)
|
|
|
IsFitToPage |
Indicates whether fit to page mode is selected.
|
|
|
IsPrintGridlines |
True if cell gridlines are printed on the page. Applies only to
worksheets. Read / write Boolean.
|
|
|
IsPrintHeadings |
True if row and column headings are printed with this page. Applies
only to worksheets. Read / write Boolean.
|
|
|
IsSummaryColumnRight |
Indicates whether summary columns will appear right of the detail in outlines.
|
|
|
IsSummaryRowBelow |
Indicates whether summary rows will appear below detail in outlines.
|
|
|
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
.)
|
|
|
LeftFooterImage |
Gets / set image for left part of the footer.
(Inherited from
IPageSetupBase
.)
|
|
|
LeftHeader |
Returns or sets the left part of the header. Read / write String.
(Inherited from
IPageSetupBase
.)
|
|
|
LeftHeaderImage |
Gets / set image for left part of the header.
(Inherited from
IPageSetupBase
.)
|
|
|
LeftMargin |
Returns or sets the size of the left margin, in inches.
Read / write Double.
(Inherited from
IPageSetupBase
.)
|
|
|
Order |
Returns or sets the order that Microsoft Excel uses to number
pages when printing a large worksheet. Read / write ExcelOrder.
(Inherited from
IPageSetupBase
.)
|
|
|
Orientation |
Portrait or landscape printing mode. Read / write ExcelPageOrientation.
(Inherited from
IPageSetupBase
.)
|
|
|
PaperSize |
Returns or sets the size of the paper. Read / write ExcelPaperSize.
(Inherited from
IPageSetupBase
.)
|
|
|
Parent |
Gets the parent object of the current instance.
(Inherited from
IExcelApplication
.)
|
|
|
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.
|
|
|
PrintComments |
Returns or sets the way comments are printed with the sheet.
Read / write ExcelPrintLocation.
(Inherited from
IPageSetupBase
.)
|
|
|
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
.)
|
|
|
PrintNotes |
True if cell notes are printed as end notes with the sheet. Applies
only to worksheets. Read / write Boolean.
(Inherited from
IPageSetupBase
.)
|
|
|
PrintQuality |
Returns or sets the print quality. Read / write ushort.
(Inherited from
IPageSetupBase
.)
|
|
|
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.
|
|
|
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.
|
|
|
RightFooter |
Returns or sets the right part of the footer. Read / write String.
(Inherited from
IPageSetupBase
.)
|
|
|
RightFooterImage |
Gets / set image for right part of the footer.
(Inherited from
IPageSetupBase
.)
|
|
|
RightHeader |
Returns or sets the right part of the header. Read / write String.
(Inherited from
IPageSetupBase
.)
|
|
|
RightHeaderImage |
Gets / set image for right part of the header.
(Inherited from
IPageSetupBase
.)
|
|
|
RightMargin |
Returns or sets the size of the right margin, in inches.
Read / write Double.
(Inherited from
IPageSetupBase
.)
|
|
|
TopMargin |
Returns or sets the size of the top margin, in inches.
Read / write Double.
(Inherited from
IPageSetupBase
.)
|
|
|
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
.)
|