20 references to DrawingEventFlags
System.Windows.Forms (20)
System\Windows\Forms\Control.cs (3)
11779(paintBackground ? DrawingEventFlags.SaveState : default) | DrawingEventFlags.GraphicsStateUnclean); 11786paintBackground ? DrawingEventFlags.SaveState : default);
System\Windows\Forms\Control.PrintPaintEventArgs.cs (1)
15: base(dc, clipRect, DrawingEventFlags.SaveState)
System\Windows\Forms\Rendering\DrawingEventArgs.cs (8)
33DrawingEventFlags flags) 49DrawingEventFlags flags) 68internal DrawingEventFlags Flags { get; private set; } 71internal bool IsStateClean => !Flags.HasFlag(DrawingEventFlags.GraphicsStateUnclean); 87Flags |= DrawingEventFlags.GraphicsStateUnclean; 148internal static void CheckGraphicsForState(Graphics? graphics, DrawingEventFlags flags) 150if (graphics is null || !flags.HasFlag(DrawingEventFlags.CheckState) 151|| flags.HasFlag(DrawingEventFlags.GraphicsStateUnclean))
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (2)
48_event = new DrawingEventArgs(graphics, rect, DrawingEventFlags.GraphicsStateUnclean); 74_event = new DrawingEventArgs(hdc, rect, DrawingEventFlags.CheckState);
System\Windows\Forms\Rendering\PaintEventArgs.cs (6)
41flags: DrawingEventFlags.GraphicsStateUnclean) 58DrawingEventFlags flags) 70DrawingEventFlags flags = DrawingEventFlags.CheckState) 107if (_event.Flags.HasFlag(DrawingEventFlags.SaveState) && graphics is not null) 122=> _savedGraphicsState = _event.Flags.HasFlag(DrawingEventFlags.SaveState) ? graphics.Save() : default;