The XLPrintSettings type exposes the following members.

Constructors

  Name Description
Public method XLPrintSettings
Creates a new instance of the XLPrintSettings class.

Methods

  Name Description
Public method Clone
Creates a new XLPrintSettings object that is a copy of the current instance.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  Name Description
Public property AutoScale
Gets or sets the scaling mode used for printed output.
Public property BlackAndWhite
Gets or sets whether to print the sheet in monochrome mode.
Public property CenterHorizontal
Gets or sets whether the sheet should be centered horizontally on the page when printed.
Public property CenterVertical
Gets or sets whether the sheet should be centered vertically on the page when printed.
Public property Copies
Gets or sets the number of copies to print.
Public property DraftQuality
Gets or sets whether to print the sheet in draft quality mode.
Public property FitPagesAcross
Fit the sheet to this number of pages across (0 means use as many as needed).
Public property FitPagesDown
Fit the sheet to this number of pages down (0 means use as many as needed).
Public property Footer
Gets or sets the string to be displayed as a page footer when the sheet is printed.
Public property Header
Gets or sets the string to be displayed as a page header when the sheet is printed.
Public property Landscape
Gets or sets whether to print the sheet in landscape mode.
Public property MarginBottom
Gets or sets the bottom margin, in inches. Set to a negative value to use the default margin.
Public property MarginFooter
Gets or sets the footer margin, in inches. Set to a negative value to use the default margin.
Public property MarginHeader
Gets or sets the header margin, in inches. Set to a negative value to use the default margin.
Public property MarginLeft
Gets or sets the left margin, in inches. Set to a negative value to use the default margin.
Public property MarginRight
Gets or sets the right margin, in inches. Set to a negative value to use the default margin.
Public property MarginTop
Gets or sets the top margin, in inches. Set to a negative value to use the default margin.
Public property PaperKind
Gets or sets the paper size to use when printing the sheet.
Public property PrintGridlines
Gets or sets whether the gridlines will be printed.
Public property PrintHeaders
Gets or sets whether row and column headers (the areas with row numbers and column letters) will be printed.
Public property PrintPagesInRows
Gets or sets whether to print the pages in rows (across first) or in columns (down first).
Public property ScalingFactor
Gets or sets the scaling factor (in percent) to use when printing the sheet.
Public property StartPage
Gets or sets the initial page number to use when printing the sheet.

See Also