System.Drawing.Printing.PrinterSettings.SetHdevmode Method

Copies the relevant information out of the given handle and into the System.Drawing.Printing.PrinterSettings.

Syntax

public void SetHdevmode (IntPtr hdevmode)

Parameters

hdevmode
The handle to a Win32 DEVMODE structure.

Remarks

DEVMODE structures are device specific and copying a DEVMODE structure from one System.Drawing.Printing.PrinterSettings to a System.Drawing.Printing.PrinterSettings for a different printer is not supported.

Requirements

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