34 references to InvalidateEventArgs
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (2)
5797OnInvalidated(new InvalidateEventArgs(Rectangle.Ceiling(region.GetBounds(graphics)))); 6478OnInvalidated(new InvalidateEventArgs(invalidatedArea));
System.Windows.Forms.Tests (32)
System\Windows\Forms\ControlTests.Handlers.cs (31)
2737yield return new object[] { new InvalidateEventArgs(new Rectangle(1, 2, 3, 4)) }; 2769yield return new object[] { true, Color.Empty, new InvalidateEventArgs(Rectangle.Empty) }; 2770yield return new object[] { true, Color.Empty, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)) }; 2771yield return new object[] { true, Color.Empty, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)) }; 2773yield return new object[] { true, Color.Red, new InvalidateEventArgs(Rectangle.Empty) }; 2774yield return new object[] { true, Color.Red, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)) }; 2775yield return new object[] { true, Color.Red, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)) }; 2777yield return new object[] { true, Color.FromArgb(200, 50, 100, 150), new InvalidateEventArgs(Rectangle.Empty) }; 2778yield return new object[] { true, Color.FromArgb(200, 50, 100, 150), new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)) }; 2779yield return new object[] { true, Color.FromArgb(200, 50, 100, 150), new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)) }; 2782yield return new object[] { false, Color.Empty, new InvalidateEventArgs(Rectangle.Empty) }; 2783yield return new object[] { false, Color.Empty, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)) }; 2784yield return new object[] { false, Color.Empty, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)) }; 2786yield return new object[] { false, Color.Red, new InvalidateEventArgs(Rectangle.Empty) }; 2787yield return new object[] { false, Color.Red, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)) }; 2788yield return new object[] { false, Color.Red, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)) }; 2873yield return new object[] { true, Color.Empty, new InvalidateEventArgs(Rectangle.Empty), 0 }; 2874yield return new object[] { true, Color.Empty, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)), 0 }; 2875yield return new object[] { true, Color.Empty, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)), 0 }; 2876yield return new object[] { true, Color.Red, new InvalidateEventArgs(Rectangle.Empty), 0 }; 2877yield return new object[] { true, Color.Red, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)), 0 }; 2878yield return new object[] { true, Color.Red, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)), 0 }; 2879yield return new object[] { true, Color.FromArgb(200, 50, 100, 150), new InvalidateEventArgs(Rectangle.Empty), 0 }; 2880yield return new object[] { true, Color.FromArgb(200, 50, 100, 150), new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)), 0 }; 2881yield return new object[] { true, Color.FromArgb(200, 50, 100, 150), new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)), 1 }; 2883yield return new object[] { false, Color.Empty, new InvalidateEventArgs(Rectangle.Empty), 0 }; 2884yield return new object[] { false, Color.Empty, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)), 0 }; 2885yield return new object[] { false, Color.Empty, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)), 0 }; 2886yield return new object[] { false, Color.Red, new InvalidateEventArgs(Rectangle.Empty), 0 }; 2887yield return new object[] { false, Color.Red, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)), 0 }; 2888yield return new object[] { false, Color.Red, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)), 0 };
System\Windows\Forms\InvalidateEventArgsTests.cs (1)
22InvalidateEventArgs e = new(invalidRect);