Skip to main content
A newer version of this page is available. .

PageSettingsHelper Members

Enables you to override the default printer settings in your application.

Constructors

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

Properties

Name Description
DefaultPageSettings static Provides access to the page settings defined for the system’s default printer.
DefaultSettings Provides access to the page settings defined for the system’s default printer.
Instance static Specifies an instance of the PageSettingsHelper class.
PrinterExists static Indicates whether or not there are any printers installed on the machine.

Methods

Name Description
CreateLetterPaperSize() static Specifies a custom letter paper size.
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.
GetLandscapeFieldValue(PageSettings) static For internal use.
GetMinMargins(PageSettings) static Returns the minimum page margins supported by the specified page settings.
GetPaperSizeFieldValue(PageSettings) static For internal use.
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.
ResetUserSetPageSettings(PrintDocument) static
SetDefaultPageSettings(PrinterSettings, PageSettings) static Specifies the default printer settings.
SetLandscapeFieldValue(PageSettings, Object) static For internal use.
SetPaperSizeFieldValue(PageSettings, Object) static For internal use.
SetPrinterName(PrinterSettings, String) static Assigns the specified printer name to the default printer settings (if such a printer is installed on the machine).
ToString() Returns a string that represents the current object. Inherited from Object.
See Also