2 writes to graphics
System.Windows.Forms (2)
winforms\Managed\System\WinForms\PaintEvent.cs (2)
76
this.
graphics
= graphics;
134
graphics
= Graphics.FromHdcInternal(dc);
9 references to graphics
System.Windows.Forms (9)
winforms\Managed\System\WinForms\PaintEvent.cs (9)
115
if (
graphics
== null)
132
if (
graphics
== null && dc != IntPtr.Zero) {
135
graphics
.PageUnit = GraphicsUnit.Pixel;
136
savedGraphicsState =
graphics
.Save(); // See ResetGraphics() below
138
return
graphics
;
164
if (
graphics
!= null && dc != IntPtr.Zero) {
165
graphics
.Dispose();
181
if (
graphics
!= null) {
184
graphics
.Restore(savedGraphicsState);