34 instantiations of InvalidateEventArgs
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (2)
5797
OnInvalidated(new
InvalidateEventArgs
(Rectangle.Ceiling(region.GetBounds(graphics))));
6478
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);
11 references to InvalidateEventArgs
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (2)
7571
protected virtual void OnInvalidated(
InvalidateEventArgs
e)
7867
private void OnParentInvalidated(
InvalidateEventArgs
e)
System\Windows\Forms\Rendering\InvalidateEventArgs.cs (1)
14
/// Initializes a new instance of the <see cref="
InvalidateEventArgs
"/>
System\Windows\Forms\Rendering\InvalidateEventHandler.cs (1)
10
public delegate void InvalidateEventHandler(object? sender,
InvalidateEventArgs
e);
System.Windows.Forms.Tests (7)
System\Windows\Forms\ControlTests.cs (1)
1300
public new void OnInvalidated(
InvalidateEventArgs
e) => base.OnInvalidated(e);
System\Windows\Forms\ControlTests.Handlers.cs (4)
2742
public void Control_OnInvalidated_Invoke_CallsInvalidated(
InvalidateEventArgs
eventArgs)
2793
public void Control_OnInvalidated_InvokeWithChildren_CallsInvalidated(bool supportsTransparentBackgroundColor, Color backColor,
InvalidateEventArgs
eventArgs)
2838
public void Control_OnInvalidated_InvokeWithHandle_CallsInvalidated(
InvalidateEventArgs
eventArgs)
2893
public void Control_OnInvalidated_InvokeWithChildrenWithHandle_CallsInvalidated(bool supportsTransparentBackgroundColor, Color backColor,
InvalidateEventArgs
eventArgs, int expectedChildInvalidatedCallCount)
System\Windows\Forms\InvalidateEventArgsTests.cs (1)
22
InvalidateEventArgs
e = new(invalidRect);
System\Windows\Forms\ToolStripTests.cs (1)
7640
public new void OnInvalidated(
InvalidateEventArgs
e) => base.OnInvalidated(e);