2 writes to _graphics
System.Drawing.Common (2)
System\Drawing\Printing\DefaultPrintController.cs (2)
89
_graphics
= Graphics.FromHdcInternal(_hdc);
127
_graphics
= null;
8 references to _graphics
System.Drawing.Common (8)
System\Drawing\Printing\DefaultPrintController.cs (8)
24
Debug.Assert(_hdc is null &&
_graphics
is null, "PrintController methods called in the wrong order?");
73
Debug.Assert(_hdc is not null &&
_graphics
is null, "PrintController methods called in the wrong order?");
101
_graphics
.TranslateTransform(-hardMarginX, -hardMarginY);
102
_graphics
.TranslateTransform(document.DefaultPageSettings.Margins.Left, document.DefaultPageSettings.Margins.Top);
106
return result2 <= 0 ? throw new Win32Exception() :
_graphics
;
114
Debug.Assert(_hdc is not null &&
_graphics
is not null, "PrintController methods called in the wrong order?");
126
_graphics
.Dispose(); // Dispose of GDI+ Graphics; keep the DC
138
Debug.Assert(_hdc is not null &&
_graphics
is null, "PrintController methods called in the wrong order?");