PageSettings.SetHdevmode(IntPtr) PageSettings.SetHdevmode(IntPtr) PageSettings.SetHdevmode(IntPtr) PageSettings.SetHdevmode(IntPtr) Method

Definition

Copies relevant information to the PageSettings from the specified DEVMODE structure.

public:
 void SetHdevmode(IntPtr hdevmode);
public void SetHdevmode (IntPtr hdevmode);
member this.SetHdevmode : nativeint -> unit
Public Sub SetHdevmode (hdevmode As IntPtr)

Parameters

hdevmode
IntPtr IntPtr IntPtr IntPtr

The handle to a Win32 DEVMODE structure.

Exceptions

The printer named in the PrinterName property does not exist or there is no default printer installed.

Remarks

Use this method to copy relevant information in a DEVMODE structure to the PageSettings.

To copy information from the PageSettings to a DEVMODE, call CopyToHdevmode.

Security

PrintingPermission
for printing and access to all printers on the network. Associated enumeration: AllPrinting

Applies to

See also