Skip to main content

XlPageSetup Members

Represents the object that specifies page formatting options.

Constructors

Name Description
XlPageSetup() Initializes a new instance of the XlPageSetup class with the default settings.

Properties

Name Description
AutomaticFirstPageNumber Gets or sets a value indicating whether the first page number should be selected automatically.
BlackAndWhite Gets or sets whether to print the worksheet in black and white or in color.
CommentsPrintMode Gets or sets how comments contained in a worksheet are printed.
Copies Gets or sets the number of worksheet copies to print.
Draft Gets or sets a value indicating whether the worksheet should be printed without graphics and graphic elements (such as gridlines).
ErrorsPrintMode Gets or sets how errors contained in worksheet cells are printed.
FirstPageNumber Gets or sets the number from which pagination starts on the current worksheet.
FitToHeight Gets or sets the number of pages by height in which the worksheet should fit when printed.
FitToPage Gets or sets a value indicating whether the worksheet content should be scaled to fit on a specific number of pages.
FitToWidth Gets or sets the number of pages wide the worksheet should fit on when printed.
HorizontalDpi Gets or sets the horizontal printer resolution, in dots per inch.
PageOrientation Gets or sets the page orientation applied when a worksheet is being printed.
PagePrintOrder Gets or sets the order in which worksheet pages are numbered and printed.
PaperKind Gets or sets a value that specifies the paper size used when a worksheet is being printed.
Scale Gets or sets the percentage by which to scale the worksheet content.
UsePrinterDefaults Gets or sets a value indicating whether to use the default page settings specified by the printer.
VerticalDpi Gets or sets the vertical printer resolution, in dots per inch.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also