PrintForm Members

Include Protected Members
Include Inherited Members

Enables printing an image of a Windows Form at run time.

The PrintForm type exposes the following members.

Constructors

  Name Description
Public method PrintForm Overloaded. Initializes a new instance of the PrintForm class.

Top

Methods

  Name Description
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose Overloaded.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone Overloaded.
Protected method OnBeginPrint Raises the BeginPrint event.
Protected method OnEndPrint Raises the EndPrint event.
Protected method OnQueryPageSettings Raises the QueryPageSettings event.
Public method Print Overloaded. Sends an image of a Windows Form to the destination specified by the PrintAction property.
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)

Top

Properties

  Name Description
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public property DocumentName Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.
Protected property Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property Form Gets or sets the form to be printed.
Public property PrintAction Gets or sets a value indicating whether the output is directed to a printer, to a print preview window, or to a file.
Public property PrinterSettings Gets or sets a PrinterSettings object that you can use to specify various properties of a printer.
Public property PrintFileName Gets or sets the file name of an Encapsulated PostScript file and the path to which the file will be saved when the PrintAction property is set to PrintToFile.
Public property Site Gets or sets the ISite of the Component. (Inherited from Component.)

Top

Events

  Name Description
Public event BeginPrint Occurs when the Print method is called, before the first page of the document prints.
Public event Disposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public event EndPrint Occurs when the last page of the document has printed.
Public event QueryPageSettings Occurs immediately before each page is printed.

Top

See Also

Reference

PrintForm Class

Microsoft.VisualBasic.PowerPacks.Printing Namespace