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