65 references to new
System.Windows.Forms (3)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1377using PaintEventArgs e = new(g, ClientRectangle);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3565using (PaintEventArgs itemPaintEventArgs = new(itemGraphics, clippingRect))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutCellPaintEventArgs.cs (1)
20: base(g, clipRectangle)
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
310using PaintEventArgs pevent = new(g, paintRect);
System\Windows\Forms\Design\ControlDesigner.cs (2)
2029using PaintEventArgs e = new(g, Control.ClientRectangle); 2077using PaintEventArgs pevent = new(graphics, paintRect);
System.Windows.Forms.Design.Tests (4)
System\ComponentModel\Design\ByteViewerTests.cs (4)
427using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 468using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 513using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 543using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System.Windows.Forms.Tests (53)
System\Windows\Forms\ComboBoxTests.cs (4)
360comboBox.TestAccessor().Dynamic.OnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 373comboBox.InvokeOnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 377comboBox.InvokeOnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 390comboBox.InvokeOnPaint(new PaintEventArgs(graphics, new Rectangle(0, 0, 100, 100)));
System\Windows\Forms\ControlTests.Handlers.cs (9)
3856using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 3978using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4028using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4105using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4638using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4657using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4696using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4725using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4761using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System\Windows\Forms\ControlTests.Methods.cs (3)
4297using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4306using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4353using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\DateTimePickerTests.cs (2)
546control.OnPaint(new(Graphics.FromImage(bmp), default)); 554control.OnPaint(new(Graphics.FromImage(bmp), default));
System\Windows\Forms\GroupBoxTests.cs (2)
1851using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 1889using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System\Windows\Forms\PaintEventArgsTests.cs (4)
25using PaintEventArgs e = new(graphics, clipRect); 33Assert.Throws<ArgumentNullException>("graphics", () => new PaintEventArgs((Graphics)null, new Rectangle(1, 2, 3, 4))); 41PaintEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4)); 71public SubPaintEventArgs(Graphics graphics, Rectangle clipRect) : base(graphics, clipRect)
System\Windows\Forms\ScrollableControlTests.cs (4)
1532using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1679using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1731using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1819using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\StatusStripTests.cs (1)
1212using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\TableLayoutPanelTests.cs (2)
1431using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1471using PaintEventArgs eventArgs = new(graphics, new Rectangle(15, 2, 5, 20));
System\Windows\Forms\TabPageTests.cs (4)
3978using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4048using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4104using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4187using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\ToolStripButtonTests.cs (3)
1266using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1357using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1450yield return new object[] { displayStyle, new PaintEventArgs(graphics, new Rectangle(1, 2, 3, 4)) };
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1855using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\ToolStripControlHostTests.cs (1)
4110using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\ToolStripSeparatorTests.cs (3)
1119yield return new object[] { layoutStyle, new PaintEventArgs(graphics, new Rectangle(1, 2, 3, 4)) }; 1213using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1284using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\ToolStripTests.cs (6)
5873using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6020using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6071using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6158using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6233using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 6262using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System\Windows\Forms\UpDownBaseTests.cs (2)
2247using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 2283using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
TrackBarTests.cs (2)
3258using (var eventArgs = new PaintEventArgs(graphics, rectangle)) 3267using (var eventArgs = new PaintEventArgs(graphics, rectangle))
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
116new(graphics, Rectangle.Empty)
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
186using (PaintEventArgs args = new PaintEventArgs(g, control.ClientRectangle))