System.Drawing.Printing.PageSettings.CopyToHdevmode Method

Copies the relevant information from the System.Drawing.Printing.PageSettings to the specified DEVMODE structure.

Syntax

public void CopyToHdevmode (IntPtr hdevmode)

Parameters

hdevmode
The handle to a Win32 DEVMODE structure.

Remarks

Call the PageSettings.CopyToHdevmode(IntPtr) method to copy relevant information to a DEVMODE structure from a System.Drawing.Printing.PageSettings. This method is useful when you want to make unmanaged Win32 calls that require a DEVMODE.

To copy information from a DEVMODE structure to the System.Drawing.Printing.PageSettings, call PageSettings.SetHdevmode(IntPtr).

Requirements

Namespace: System.Drawing.Printing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0