3 writes to _event
System.Windows.Forms (3)
System\Windows\Forms\Rendering\PaintEventArgs.cs (3)
50_event = hdc.IsNull 60_event = new DrawingEventArgs(graphics, clipRect, flags); 72_event = new DrawingEventArgs(hdc, clipRect, flags);
13 references to _event
System.Windows.Forms (13)
System\Windows\Forms\Rendering\PaintEventArgs.cs (13)
51? new DrawingEventArgs(e.GraphicsInternal, clipRect, e._event.Flags) 52: new DrawingEventArgs(hdc, clipRect, e._event.Flags); 80public Rectangle ClipRectangle => _event.ClipRectangle; 85public Graphics Graphics => _event.Graphics; 96protected virtual void Dispose(bool disposing) => _event?.Dispose(disposing); 106Graphics? graphics = _event.GetGraphics(create: false); 107if (_event.Flags.HasFlag(DrawingEventFlags.SaveState) && graphics is not null) 122=> _savedGraphicsState = _event.Flags.HasFlag(DrawingEventFlags.SaveState) ? graphics.Save() : default; 127internal Graphics GraphicsInternal => _event.GetOrCreateGraphicsInternal(SaveStateIfNeeded); 132internal HDC HDC => _event.HDC; 138IGraphics? IGraphicsHdcProvider.GetGraphics(bool createIfNeeded) => _event.GetGraphics(createIfNeeded); 139HDC IGraphicsHdcProvider.GetHdc() => _event.GetHDC(); 140bool IGraphicsHdcProvider.IsGraphicsStateClean => _event.IsStateClean;