34 instantiations of 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);
11 references to InvalidateEventArgs
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (2)
7571protected virtual void OnInvalidated(InvalidateEventArgs e) 7867private 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)
10public delegate void InvalidateEventHandler(object? sender, InvalidateEventArgs e);
System.Windows.Forms.Tests (7)
System\Windows\Forms\ControlTests.cs (1)
1300public new void OnInvalidated(InvalidateEventArgs e) => base.OnInvalidated(e);
System\Windows\Forms\ControlTests.Handlers.cs (4)
2742public void Control_OnInvalidated_Invoke_CallsInvalidated(InvalidateEventArgs eventArgs) 2793public void Control_OnInvalidated_InvokeWithChildren_CallsInvalidated(bool supportsTransparentBackgroundColor, Color backColor, InvalidateEventArgs eventArgs) 2838public void Control_OnInvalidated_InvokeWithHandle_CallsInvalidated(InvalidateEventArgs eventArgs) 2893public void Control_OnInvalidated_InvokeWithChildrenWithHandle_CallsInvalidated(bool supportsTransparentBackgroundColor, Color backColor, InvalidateEventArgs eventArgs, int expectedChildInvalidatedCallCount)
System\Windows\Forms\InvalidateEventArgsTests.cs (1)
22InvalidateEventArgs e = new(invalidRect);
System\Windows\Forms\ToolStripTests.cs (1)
7640public new void OnInvalidated(InvalidateEventArgs e) => base.OnInvalidated(e);