PageSetup Methods

The PageSetup type exposes the following members.

Methods
  NameDescription
Public methodClearHeaderFooter
Clears header and footer setting.
Public methodCopy
Copies the setting of the page setup.
Public methodCustomPaperSize
Sets the custom paper size, in unit of inches.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetCommands
Gets all commands of header or footer.
Public methodGetEvenFooter
Gets a script formatting the even footer of an Excel file.
Public methodGetEvenHeader
Gets a script formatting the even header of an Excel file.
Public methodGetFirstPageFooter
Gets a script formatting the first page footer of an Excel file.
Public methodGetFirstPageHeader
Gets a script formatting the first page header of an Excel file.
Public methodGetFooter
Gets a script formatting the footer of an Excel file.
Public methodGetHashCode (Inherited from Object.)
Public methodGetHeader
Gets a script formatting the header of an Excel file.
Public methodGetPicture(Boolean, Int32)
Gets the Picture object of the header / footer.
Public methodGetPicture(Boolean, Boolean, Boolean, Int32)
Gets the Picture object of the header / footer.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSetEvenFooter
Sets a script formatting the even page footer of an Excel file. Only effect in Excel 2007 when IsHFDiffOddEven is true.
Public methodSetEvenHeader
Sets a script formatting the even page header of an Excel file. Only effect in Excel 2007 when IsHFDiffOddEven is true.
Public methodSetFirstPageFooter
Sets a script formatting the first page footer of an Excel file.
Public methodSetFirstPageHeader
Sets a script formatting the first page header of an Excel file. Only effect in Excel 2007 when IsHFDiffFirst is true.
Public methodSetFitToPages
Sets the number of pages the worksheet will be scaled to when it's printed.
Public methodSetFooter
Sets a script formatting the footer of an Excel file.
Public methodSetFooterPicture
Sets an image in the footer of a worksheet.
Public methodSetHeader
Sets a script formatting the header of an Excel file.
Public methodSetHeaderPicture
Sets an image in the header of a worksheet.
Public methodSetPicture
Sets an image in the header/footer of a worksheet.
Public methodToString (Inherited from Object.)
See Also