18 references to new
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
16006HandledMouseEventArgs hme = new( 16026HandledMouseEventArgs hme = new( 16056HandledMouseEventArgs hme = new( 16076HandledMouseEventArgs hme = new(
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnDividerDoubleClickEventArgs.cs (1)
9: base(e?.Button ?? MouseButtons.None, e?.Clicks ?? 0, e?.X ?? 0, e?.Y ?? 0, e?.Delta ?? 0, e?.Handled ?? false)
System\Windows\Forms\Input\HandledMouseEventArgs.cs (2)
9: this(button, clicks, x, y, delta, false) 14: this(button, clicks, location.X, location.Y, delta, false)
System.Windows.Forms.Tests (11)
System\Windows\Forms\DataGridViewColumnDividerDoubleClickEventArgsTests.cs (4)
11yield return new object[] { -1, new HandledMouseEventArgs(MouseButtons.Left, 1, 2, 3, 4, true) }; 12yield return new object[] { 0, new HandledMouseEventArgs((MouseButtons)1, 0, 0, 0, 0, true) }; 13yield return new object[] { 1, new HandledMouseEventArgs((MouseButtons)3, -1, -1, -1, -2, false) }; 34Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewColumnDividerDoubleClickEventArgs(-2, new HandledMouseEventArgs(MouseButtons.Left, 1, 2, 3, 4, true)));
System\Windows\Forms\DataGridViewRowDividerDoubleClickEventArgsTests.cs (4)
11yield return new object[] { -1, new HandledMouseEventArgs(MouseButtons.Left, 1, 2, 3, 4, true) }; 12yield return new object[] { 0, new HandledMouseEventArgs((MouseButtons)1, 0, 0, 0, 0, true) }; 13yield return new object[] { 1, new HandledMouseEventArgs((MouseButtons)3, -1, -1, -1, -2, false) }; 34Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewRowDividerDoubleClickEventArgs(-2, new HandledMouseEventArgs(MouseButtons.Left, 1, 2, 3, 4, true)));
System\Windows\Forms\HandledMouseEventArgsTests.cs (1)
33HandledMouseEventArgs e = new(button, clicks, x, y, delta, handled);
System\Windows\Forms\UpDownBaseTests.cs (1)
2200HandledMouseEventArgs eventArgs = new(MouseButtons.Left, 1, 2, 3, 4, handled);
TrackBarTests.cs (1)
2580HandledMouseEventArgs eventArgs = new(MouseButtons.Left, 1, 2, 3, 4, handled);