3 instantiations of HdcHandle
System.Drawing.Common (3)
System\Drawing\Printing\DefaultPrintController.cs (1)
32_hdc = new(document.PrinterSettings.CreateDeviceContext(_modeHandle));
System\Drawing\Printing\PreviewPrintController.cs (1)
37_hdc = new(document.PrinterSettings.CreateInformationContext(_modeHandle ?? HGLOBAL.Null));
System\Drawing\Printing\PrinterSettings.cs (1)
510g.PrintingHelper = new HdcHandle(hdc); // Graphics will dispose of the DeviceContext.
5 references to HdcHandle
System.Drawing.Common (3)
System\Drawing\Graphics.cs (1)
170if (PrintingHelper is HdcHandle printerDC)
System\Drawing\Printing\DefaultPrintController.cs (1)
14private HdcHandle? _hdc;
System\Drawing\Printing\PreviewPrintController.cs (1)
14private HdcHandle? _hdc;
System.Private.Windows.Core (2)
Windows\Win32\Graphics\Gdi\HdcHandle.cs (2)
26public static implicit operator HDC(in HdcHandle handle) => handle.Handle; 27public static implicit operator nint(in HdcHandle handle) => handle.Handle;