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)
24Debug.Assert(_hdc is null && _graphics is null, "PrintController methods called in the wrong order?"); 73Debug.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); 106return result2 <= 0 ? throw new Win32Exception() : _graphics; 114Debug.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 138Debug.Assert(_hdc is not null && _graphics is null, "PrintController methods called in the wrong order?");