C# pagesetupdialog printdialog
Retrieves the current lifetime service object that controls the lifetime policy for this instance. Returns an object that represents a service provided by the Component or by its Container. Gets the Type of the current instance. Defines the common dialog box hook procedure that is overridden to add specific functionality to a common dialog box. Creates a shallow copy of the current Object.
Creates a shallow copy of the current MarshalByRefObject object. Raises the HelpRequest event. Defines the owner window procedure that is overridden to add specific functionality to a common dialog box. Returns a String containing the name of the Component , if any.
This method should not be overridden. Occurs when the component is disposed by a call to the Dispose method. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Please rate your experience Yes No.
Any additional feedback? Namespace: System. Forms Assembly: System. In this article. Gets or sets a value indicating whether the margins section of the dialog box is enabled.
Gets or sets a value indicating whether the Printer button is enabled. Gets a value indicating whether the component can raise an event. This method should not be overridden. Occurs when the component is disposed by a call to the Dispose method. Skip to main content. This browser is no longer supported.
Download Microsoft Edge More info. Contents Exit focus mode. Print Dialog Class Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback? Namespace: System. Forms Assembly: System. In this article. Gets or sets a value indicating whether the Print to file check box is enabled. Gets or sets a value indicating whether the Selection option button is enabled.
Gets or sets a value indicating whether the Pages option button is enabled. Gets a value indicating whether the component can raise an event. Inherited from Component. Gets or sets a value indicating whether the Help button is displayed. Gets or sets a value indicating whether the Network button is displayed. Gets or sets an object that contains data about the control. Inherited from CommonDialog. CreateObjRef Type. Inherited from MarshalByRefObject. Dispose Boolean. The default is 1-inch margins on all sides.
The printer named in the PrinterName property does not exist. The following code example sets the default page settings for a document to margins to 1 inch on each side. The example has three prerequisites:. Use the System. Drawing , System. Printing , and System. IO namespaces for this example. When handling the PrintDocument.
0コメント