System.Windows.Forms
1.0.5000.0
2.0.0.0
System.Windows.Forms.CommonDialog
System.ComponentModel.DefaultProperty("Document")
The dialog box modifies the and information for a given . 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 property defines the minimum margins a user can select.
When you create an instance of the class, the read/write properties are set to initial values. For a list of these values, see the constructor.
Because a needs page settings to display, you need to set the , , or property before calling ; otherwise, an exception will occur.
Enables users to change page-related print settings, including margins and paper orientation. This class cannot be inherited.
Constructor
When an instance of is created, the following properties are initialized to the specified values.
-
Property
Initial Value
-
true
-
true
-
true
-
true
-
null
-
null
-
null
-
null
-
false
-
true
You can change the value for any of these properties through a separate call to the property.
Initializes a new instance of the class.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the margins section of the dialog box is enabled.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the orientation section of the dialog box (landscape versus portrait) is enabled.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the paper section of the dialog box (paper size and paper source) is enabled.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
Setting this property to true has no effect if the application is running on windowsver. The Printer button will not be shown.
Gets or sets a value indicating whether the Printer button is enabled.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(null)
System.Drawing.Printing.PrintDocument
To be added.
To be added.
Gets or sets a value indicating the to get page settings from.
1.0.5000.0
2.0.0.0
Property
2.0.0.0
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)
System.ComponentModel.DefaultValue(false)
System.ComponentModel.Browsable(true)
System.Boolean
To be added.
The class measures in hundredths of an inch, but the allows users to set margins in inches or millimeters depending on the culture settings for the system running the application.
In the .NET Framework version 2.0, you should set this property to true if your application could be used in cultures that measure document margins in millimeters. If you are doing this conversion yourself, as was required in versions of the .NET Framework earlier than version 2.0, you should use the default value of false.
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.
Property
System.Drawing.Printing.Margins
To be added.
To be added.
Gets or sets a value indicating the minimum margins, in hundredths of an inch, the user is allowed to select.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
System.ComponentModel.DefaultValue(null)
System.ComponentModel.Browsable(false)
System.Drawing.Printing.PageSettings
To be added.
To be added.
Gets or sets a value indicating the page settings to modify.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
System.ComponentModel.DefaultValue(null)
System.ComponentModel.Browsable(false)
System.Drawing.Printing.PrinterSettings
To be added.
To be added.
Gets or sets the printer settings that are modified when the user clicks the Printer button in the dialog.
1.0.5000.0
2.0.0.0
Method
System.Void
To be added.
Resets all options to their default values.
1.0.5000.0
2.0.0.0
Method
System.Boolean
To be added.
To be added.
To be added.
To be added.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the Help button is visible.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the Network button is visible.
1.0.5000.0
2.0.0.0