2 writes to graphics
System.Drawing (2)
commonui\System\Drawing\Printing\DefaultPrintController.cs (2)
118
graphics
= Graphics.FromHdcInternal( dc.Hdc );
167
graphics
= null;
9 references to graphics
System.Drawing (9)
commonui\System\Drawing\Printing\DefaultPrintController.cs (9)
50
Debug.Assert(dc == null &&
graphics
== null, "PrintController methods called in the wrong order?");
91
Debug.Assert(dc != null &&
graphics
== null, "PrintController methods called in the wrong order?");
120
if (
graphics
!= null && document.OriginAtMargins) {
132
graphics
.TranslateTransform(-hardMarginX, -hardMarginY);
133
graphics
.TranslateTransform(document.DefaultPageSettings.Margins.Left, document.DefaultPageSettings.Margins.Top);
140
return
graphics
;
152
Debug.Assert(dc != null &&
graphics
!= null, "PrintController methods called in the wrong order?");
166
graphics
.Dispose(); // Dispose of GDI+ Graphics; keep the DC
181
Debug.Assert(dc != null &&
graphics
== null, "PrintController methods called in the wrong order?");