Enables users to change page-related print settings, including margins and paper orientation. This class cannot be inherited.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Gets or sets a value indicating whether the margins section of the dialog box is enabled.
Gets or sets a value indicating whether the orientation section of the dialog box (landscape versus portrait) is enabled.
Gets or sets a value indicating whether the paper section of the dialog box (paper size and paper source) is enabled.
Gets or sets a value indicating whether the Printer button is enabled.
Gets or sets a value indicating the PrintDocument to get page settings from.
Gets or sets a value indicating whether the margin settings, when displayed in millimeters, should be automatically converted to and from hundredths of an inch.
Gets or sets a value indicating the minimum margins, in hundredths of an inch, the user is allowed to select.
Gets or sets a value indicating the page settings to modify.
Gets or sets the printer settings that are modified when the user clicks the Printer button in the dialog.
Gets or sets a value indicating whether the Help button is visible.
Gets or sets a value indicating whether the Network button is visible.
Gets or sets an object that contains data about the control. (Inherited from CommonDialog.)
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
Resets all options to their default values.(Overrides CommonDialog.Reset().)
Runs a common dialog box with a default owner.(Inherited from CommonDialog.)
Runs a common dialog box with the specified owner.(Inherited from CommonDialog.)
The PageSettings and PrinterSettings information for a given Document. The user can enable sections of the dialog box to manipulate printing and margins; paper orientation, size, and source; and to show Help and network buttons. The MinMargins property defines the minimum margins a user can select.dialog box modifies the
When you create an instance of the PageSetupDialog constructor.class, the read/write properties are set to initial values. For a list of these values, see the
The following code example demonstrates the PageSettings, PrinterSettings, and ShowNetwork properties. To run this example, place it in a form containing a Button named Button1, a ListBox named ListBox1, and a named PageSetupDialog1. Ensure the button's click event is connected to the event-handling method in this example.using the
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.