3 writes to _graphics
System.Windows.Forms (3)
System\Windows\Forms\Rendering\DrawingEventArgs.cs (3)
35
_graphics
= graphics.OrThrowIfNull();
62
_graphics
= null;
110
_graphics
= Graphics.FromHdcInternal((IntPtr)_hdc);
9 references to _graphics
System.Windows.Forms (9)
System\Windows\Forms\Rendering\DrawingEventArgs.cs (9)
97
if (
_graphics
is null)
111
_graphics
.PageUnit = GraphicsUnit.Pixel;
112
creationAction?.Invoke(
_graphics
);
114
CheckGraphicsForState(
_graphics
, Flags);
117
return
_graphics
;
124
CheckGraphicsForState(
_graphics
, Flags);
125
return create ? GetOrCreateGraphicsInternal() :
_graphics
;
133
if (
_graphics
is not null && !_hdc.IsNull)
135
_graphics
.Dispose();