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