20 references to DrawingEventFlags
System.Windows.Forms (20)
System\Windows\Forms\Control.cs (3)
11812
(paintBackground ?
DrawingEventFlags
.SaveState : default) |
DrawingEventFlags
.GraphicsStateUnclean);
11819
paintBackground ?
DrawingEventFlags
.SaveState : default);
System\Windows\Forms\Control.PrintPaintEventArgs.cs (1)
15
: base(dc, clipRect,
DrawingEventFlags
.SaveState)
System\Windows\Forms\Rendering\DrawingEventArgs.cs (8)
33
DrawingEventFlags
flags)
49
DrawingEventFlags
flags)
68
internal
DrawingEventFlags
Flags { get; private set; }
71
internal bool IsStateClean => !Flags.HasFlag(
DrawingEventFlags
.GraphicsStateUnclean);
87
Flags |=
DrawingEventFlags
.GraphicsStateUnclean;
147
internal static void CheckGraphicsForState(Graphics? graphics,
DrawingEventFlags
flags)
149
if (graphics is null || !flags.HasFlag(
DrawingEventFlags
.CheckState)
150
|| 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)
41
flags:
DrawingEventFlags
.GraphicsStateUnclean)
58
DrawingEventFlags
flags)
70
DrawingEventFlags
flags =
DrawingEventFlags
.CheckState)
107
if (_event.Flags.HasFlag(
DrawingEventFlags
.SaveState) && graphics is not null)
122
=> _savedGraphicsState = _event.Flags.HasFlag(
DrawingEventFlags
.SaveState) ? graphics.Save() : default;