5 instantiations of DeviceContext
System.Drawing (5)
misc\GDI\DeviceContext.cs (5)
280return new DeviceContext( hdc, DeviceContextType.NamedDevice ); 293return new DeviceContext( hdc, DeviceContextType.Information ); 311return new DeviceContext(compatibleDc, DeviceContextType.Memory); 324return new DeviceContext(hdc, DeviceContextType.Unknown); 333return new DeviceContext(hwnd);
46 references to DeviceContext
System.Drawing (46)
commonui\System\Drawing\Graphics.cs (4)
393DeviceContext printerDC = this.PrintingHelper as DeviceContext; 920using( DeviceContext dc = DeviceContext.FromHwnd( IntPtr.Zero )){ // screen DC
commonui\System\Drawing\Printing\DefaultPrintController.cs (1)
26private DeviceContext dc;
commonui\System\Drawing\Printing\PageSettings.cs (3)
109DeviceContext dc = printerSettings.CreateDeviceContext(this); 140DeviceContext dc = printerSettings.CreateDeviceContext(this); 238DeviceContext dc = printerSettings.CreateInformationContext(this);
commonui\System\Drawing\Printing\PreviewPrintController.cs (1)
31private DeviceContext dc;
commonui\System\Drawing\Printing\PrinterSettings.cs (14)
531DeviceContext dc = CreateInformationContext(DefaultPageSettings); 574DeviceContext dc = CreateInformationContext(DefaultPageSettings); 640internal DeviceContext CreateDeviceContext(PageSettings pageSettings) { 642DeviceContext dc = null; 666internal DeviceContext CreateDeviceContext(IntPtr hdevmode) { 668DeviceContext dc = DeviceContext.CreateDC(DriverName, PrinterNameInternal, (string) null, new HandleRef(null, modePointer)); 677internal DeviceContext CreateInformationContext(PageSettings pageSettings) { 679DeviceContext dc; 704internal DeviceContext CreateInformationContext(IntPtr hdevmode) { 706DeviceContext dc = DeviceContext.CreateIC(DriverName, PrinterNameInternal, (string) null, new HandleRef(null, modePointer)); 744DeviceContext dc = CreateDeviceContext(pageSettings); 963DeviceContext dc = CreateInformationContext(DefaultPageSettings);
commonui\System\Drawing\Printing\PrintPreviewGraphics.cs (1)
49using( DeviceContext dc = printPageEventArgs.PageSettings.PrinterSettings.CreateDeviceContext(hdevMode)) {
misc\GDI\DeviceContext.cs (7)
275public static DeviceContext CreateDC(string driverName, string deviceName, string fileName, HandleRef devMode) 288public static DeviceContext CreateIC(string driverName, string deviceName, string fileName, HandleRef devMode) 301public static DeviceContext FromCompatibleDC(IntPtr hdc) 321public static DeviceContext FromHdc(IntPtr hdc) 331public static DeviceContext FromHwnd( IntPtr hwnd ) 658DeviceContext other = obj as DeviceContext;
misc\GDI\DeviceContexts.cs (4)
47internal static void AddDeviceContext(DeviceContext dc) { 61DeviceContext dc = sender as DeviceContext; 70internal static void RemoveDeviceContext(DeviceContext dc) {
misc\GDI\WindowsGraphics.cs (11)
54DeviceContext dc; 65public WindowsGraphics( DeviceContext dc ) 82DeviceContext dc = DeviceContext.FromCompatibleDC(IntPtr.Zero); 98DeviceContext dc = DeviceContext.FromCompatibleDC(screenDC); 108DeviceContext dc = DeviceContext.FromHwnd( hWnd ); 122DeviceContext dc = DeviceContext.FromHdc(hDc); 241public DeviceContext DeviceContext