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