4 types derived from MouseEventArgs
System.Windows.Forms (4)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellMouseEventArgs.cs (1)
6
public class DataGridViewCellMouseEventArgs :
MouseEventArgs
, IDataGridViewCellEventArgs
System\Windows\Forms\Controls\TreeView\TreeNodeMouseClickEventArgs.cs (1)
10
public class TreeNodeMouseClickEventArgs :
MouseEventArgs
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBarPanelClickEventArgs.cs (1)
20
public class StatusBarPanelClickEventArgs :
MouseEventArgs
System\Windows\Forms\Input\HandledMouseEventArgs.cs (1)
6
public class HandledMouseEventArgs :
MouseEventArgs
445 instantiations of MouseEventArgs
System.Windows.Forms (62)
System\Windows\Forms\ActiveX\AxHost.cs (3)
3858
base.OnMouseMove(new
MouseEventArgs
((MouseButtons)(button << 20), 1, x, y, 0));
3876
base.OnMouseUp(new
MouseEventArgs
((MouseButtons)(button << 20), 1, x, y, 0));
3894
base.OnMouseDown(new
MouseEventArgs
((MouseButtons)(button << 20), 1, x, y, 0));
System\Windows\Forms\Control.cs (7)
11426
OnMouseDown(new
MouseEventArgs
(button, clicks, PARAM.ToPoint(m.LParamInternal)));
11547
OnMouseMove(new
MouseEventArgs
(MouseButtons, 0, PARAM.ToPoint(m.LParamInternal)));
11584
OnClick(new
MouseEventArgs
(button, clicks, location));
11585
OnMouseClick(new
MouseEventArgs
(button, clicks, location));
11589
OnDoubleClick(new
MouseEventArgs
(button, 2, location));
11590
OnMouseDoubleClick(new
MouseEventArgs
(button, 2, location));
11594
OnMouseUp(new
MouseEventArgs
(button, clicks, location));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (14)
1594
OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, Ptlc.X, Ptlc.Y, 0));
1611
OnMouseDown(new
MouseEventArgs
(MouseButtons.Middle, 1, Ptmc.X, Ptmc.Y, 0));
1628
OnMouseDown(new
MouseEventArgs
(MouseButtons.Right, 1, Ptrc.X, Ptrc.Y, 0));
1642
OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, Ptl.X, Ptl.Y, 0));
1658
OnClick(new
MouseEventArgs
(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal)));
1659
OnMouseClick(new
MouseEventArgs
(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal)));
1674
OnMouseUp(new
MouseEventArgs
(MouseButtons.Left, 1, EditToComboboxMapping(m)));
1687
OnMouseDown(new
MouseEventArgs
(MouseButtons.Middle, 1, P.X, P.Y, 0));
1704
OnMouseDown(new
MouseEventArgs
(MouseButtons.Right, 1, Pt.X, Pt.Y, 0));
1713
OnMouseUp(new
MouseEventArgs
(MouseButtons.Middle, 1, PARAM.ToPoint(m.LParamInternal)));
1724
OnMouseUp(new
MouseEventArgs
(MouseButtons.Right, 1, ptRBtnUp.X, ptRBtnUp.Y, 0));
1746
OnMouseMove(new
MouseEventArgs
(MouseButtons, 0, point.X, point.Y, 0));
3712
OnClick(new
MouseEventArgs
(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal)));
3713
OnMouseClick(new
MouseEventArgs
(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal)));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
5752
MouseEventArgs me =
new
(
5789
me = new
MouseEventArgs
(
5849
me = new
MouseEventArgs
(
5919
MouseEventArgs meTmp =
new
(
16364
MouseEventArgs meTmp =
new
(e.Button, 2, e.X, e.Y, e.Delta);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
2426
OnClick(new
MouseEventArgs
(MouseButtons.Left, 1, point));
2427
OnMouseClick(new
MouseEventArgs
(MouseButtons.Left, 1, point));
2437
OnDoubleClick(new
MouseEventArgs
(MouseButtons.Left, 2, point));
2438
OnMouseDoubleClick(new
MouseEventArgs
(MouseButtons.Left, 2, point));
System\Windows\Forms\Controls\ListView\ListView.cs (6)
5893
OnMouseDown(new
MouseEventArgs
(button, clicks, point));
6656
OnMouseClick(new
MouseEventArgs
(button, 1, pos.X, pos.Y, 0));
6661
OnMouseUp(new
MouseEventArgs
(button, 1, pos.X, pos.Y, 0));
6986
OnMouseDoubleClick(new
MouseEventArgs
(_downButton, 2, PARAM.ToPoint(m.LParamInternal)));
6991
OnMouseUp(new
MouseEventArgs
(_downButton, 1, PARAM.ToPoint(m.LParamInternal)));
7017
OnMouseUp(new
MouseEventArgs
(_downButton, 1, PARAM.ToPoint(m.LParamInternal)));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2402
OnMouseMove(new
MouseEventArgs
(e.Button, e.Clicks, newPoint.X, newPoint.Y, e.Delta));
2418
OnMouseDown(new
MouseEventArgs
(e.Button, e.Clicks, newPoint.X, newPoint.Y, e.Delta));
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3331
mea = new
MouseEventArgs
(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta);
3387
mea = new
MouseEventArgs
(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta);
3431
mea = new
MouseEventArgs
(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta);
System\Windows\Forms\Controls\TreeView\TreeView.cs (10)
2692
OnMouseDown(new
MouseEventArgs
(button, clicks, PARAM.ToPoint(m.LParamInternal)));
3049
OnClick(new
MouseEventArgs
(button, 1, pos.X, pos.Y, 0));
3050
OnMouseClick(new
MouseEventArgs
(button, 1, pos.X, pos.Y, 0));
3078
OnMouseUp(new
MouseEventArgs
(button, 1, pos.X, pos.Y, 0));
3282
OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal)));
3326
OnClick(new
MouseEventArgs
(_downButton, 1, point));
3327
OnMouseClick(new
MouseEventArgs
(_downButton, 1, point));
3336
OnDoubleClick(new
MouseEventArgs
(_downButton, 2, point));
3337
OnMouseDoubleClick(new
MouseEventArgs
(_downButton, 2, point));
3344
OnMouseUp(new
MouseEventArgs
(_downButton, 1, point));
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
911
return new
MouseEventArgs
(e.Button, e.Clicks, point.X, point.Y, e.Delta);
System\Windows\Forms\NotifyIcon.cs (7)
689
OnDoubleClick(new
MouseEventArgs
(button, 2, 0, 0, 0));
690
OnMouseDoubleClick(new
MouseEventArgs
(button, 2, 0, 0, 0));
694
OnMouseDown(new
MouseEventArgs
(button, clicks, 0, 0, 0));
702
OnMouseMove(new
MouseEventArgs
(Control.MouseButtons, 0, 0, 0, 0));
710
OnMouseUp(new
MouseEventArgs
(button, 0, 0, 0, 0));
714
OnClick(new
MouseEventArgs
(button, 0, 0, 0, 0));
715
OnMouseClick(new
MouseEventArgs
(button, 0, 0, 0, 0));
System.Windows.Forms.Tests (382)
CheckedListBoxTests.cs (1)
792
MouseEventArgs eventArgs =
new
(MouseButtons.Left, 1, 0, 0, 0);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
59
button.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ButtonBaseTests.cs (99)
5546
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5650
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5731
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5815
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5920
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6010
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6019
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6098
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
6099
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
6100
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
6101
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
6102
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
6103
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
6104
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
6105
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
6106
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
6147
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6148
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 1 };
6149
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
6150
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 1 };
6151
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
6152
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 1 };
6153
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
6154
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 1 };
6155
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
6511
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
6512
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
6513
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
6514
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
6515
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
6516
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
6517
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
6518
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
6519
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
6520
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0) };
6521
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0) };
6565
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6596
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6625
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6626
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 0 };
6627
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
6628
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 0 };
6629
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
6630
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 0 };
6631
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
6632
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 0 };
6633
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
6634
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0), 0 };
6635
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0), 0 };
6689
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6690
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 0 };
6691
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
6692
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 0 };
6693
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
6694
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 0 };
6695
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
6696
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 0 };
6697
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
6698
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0), 1 };
6699
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0), 1 };
6700
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, -1, 0), 1 };
6701
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, int.MaxValue, int.MaxValue, 0), 1 };
6715
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6756
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6757
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 1 };
6758
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 1 };
6759
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 1 };
6760
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 1 };
6761
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 1 };
6762
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 1 };
6763
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 1 };
6764
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 1 };
6765
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0), 0 };
6766
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0), 0 };
6767
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, -1, 0), 0 };
6768
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, int.MaxValue, int.MaxValue, 0), 0 };
6782
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6830
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
6831
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
6832
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
6833
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
7644
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7675
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7707
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7793
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7835
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7878
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7969
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8005
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8042
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8138
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8185
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8233
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8474
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8510
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8547
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8643
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8690
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8738
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ButtonTests.cs (33)
1061
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
2252
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
2253
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
2254
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
2255
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
2256
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
2257
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
2258
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
2259
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
2260
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
2297
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
2298
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 1 };
2299
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
2300
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 1 };
2301
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
2302
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 1 };
2303
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
2304
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 1 };
2305
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
2645
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
2646
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
2647
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
2648
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
2697
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), false };
2698
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), true };
2699
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), false };
2700
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), false };
2716
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
2801
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), 0 };
2802
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), expectedCallCount };
2803
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), 0 };
2804
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), 0 };
2820
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ComboBoxTests.cs (1)
2778
public void OnMouseDown(Point p) => base.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, p.X, p.Y, 0));
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (5)
13
yield return new object[] { -1, -1, -1, -1, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
14
yield return new object[] { 0, 0, 0, 0, new
MouseEventArgs
((MouseButtons)1, 0, 0, 0, 0) };
15
yield return new object[] { 1, 2, 3, 4, new
MouseEventArgs
((MouseButtons)3, -1, -1, -1, -2) };
36
Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellMouseEventArgs(-2, 0, 1, 2, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4)));
43
Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellMouseEventArgs(0, -2, 1, 2, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4)));
System\Windows\Forms\DataGridViewCellTests.cs (39)
5499
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5500
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5501
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5502
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5503
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5504
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5505
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5506
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5507
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5508
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5509
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5510
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5511
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5512
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5513
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5514
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5515
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5516
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5532
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5533
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5534
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5535
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5536
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5537
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5538
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5539
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5540
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5541
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5542
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5543
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5544
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5545
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5546
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5547
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5548
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5549
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
6477
cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new
MouseEventArgs
(MouseButtons.Left, 1, 10, 10, 0)));
6485
cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new
MouseEventArgs
(MouseButtons.Left, 1, 10, 10, 0)));
6530
Action act = () => cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new
MouseEventArgs
(MouseButtons.Left, 1, 10, 10, 0)));
System\Windows\Forms\DataGridViewHeaderCellTests.cs (115)
3810
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3812
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3813
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3815
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3816
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3818
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3819
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3821
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3822
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3824
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3825
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3827
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3843
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3844
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3845
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3846
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3847
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3848
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3849
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3850
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3851
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3852
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3853
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3854
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3855
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3856
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3857
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3858
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3859
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3860
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3898
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3899
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3900
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3901
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3902
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3903
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4038
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4106
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4107
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4108
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4109
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4110
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4111
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4112
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4113
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4114
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4115
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4116
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4117
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4118
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4119
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4120
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4121
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4122
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4123
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4139
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4140
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4141
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4142
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4143
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4144
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4145
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4146
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4147
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4148
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4149
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4150
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4151
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4152
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4153
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4154
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4155
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4158
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal };
4212
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
4397
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4427
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4446
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4447
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4448
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4449
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4450
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4451
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4452
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4453
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4454
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4455
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4456
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4457
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4458
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4459
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4460
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4461
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4462
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4466
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4511
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
4521
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4522
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4523
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4524
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4525
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4526
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4527
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4528
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4529
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4530
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4531
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4532
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4533
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4534
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4535
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4536
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4537
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4540
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal };
4568
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4595
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
System\Windows\Forms\DataGridViewTests.cs (8)
3744
DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3749
args = new(0, 1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3771
DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3776
args = new(0, 1, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3823
DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3828
args = new(1, -1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3849
DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3854
args = new(1, -1, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
System\Windows\Forms\DateTimePickerTests.cs (4)
575
control.OnMouseClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
579
control.OnMouseClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
596
control.OnMouseDoubleClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
600
control.OnMouseDoubleClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\MouseEventArgsTests.cs (1)
19
MouseEventArgs e =
new
(button, clicks, x, y, delta);
System\Windows\Forms\PropertyGridTests.cs (18)
3703
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), false };
3704
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), true };
3705
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), false };
3706
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), true };
3707
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), false };
3708
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), true };
3709
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), false };
3710
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), true };
3711
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), false };
3804
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
3805
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
3806
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
3807
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
3808
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
3809
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
3810
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
3811
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
3812
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
System\Windows\Forms\RadioButtonTests.cs (14)
1050
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
1051
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
1052
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
1053
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
1103
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), false };
1104
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), expectedIsHandleCreated };
1105
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), false };
1106
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), false };
1122
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
1206
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
1207
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
1208
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
1209
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
1225
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ScrollBarTests.cs (1)
2480
MouseEventArgs eventArgs =
new
(MouseButtons.Left, 0, 0, 0, delta);
System\Windows\Forms\SplitterTests.cs (6)
1957
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 2, 3, 4) };
1958
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
1959
yield return new object[] { new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
1999
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 2, 3, 4), false };
2000
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), true };
2001
yield return new object[] { new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), false };
System\Windows\Forms\ToolStripControlHostTests.cs (3)
4085
c.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
4097
c.OnMouseMove(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
4100
c.OnMouseUp(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ToolStripItemTests.cs (5)
7740
owner.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
7778
parent.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
7796
parent.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
14434
owner.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
14523
parent.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
System\Windows\Forms\ToolStripTests.cs (1)
5833
toolStrip.OnMouseMove(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
System\Windows\Forms\UpDownBaseTests.cs (9)
2004
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
2005
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
2006
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
2007
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
2008
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
2009
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
2010
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
2011
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
2012
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
TextBoxBaseTests.cs (9)
5587
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
5588
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
5589
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
5590
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
5591
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
5592
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
5593
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
5594
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
5595
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
TrackBarTests.cs (9)
2542
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
2543
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
2544
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
2545
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
2546
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
2547
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
2548
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
2549
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
2550
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
155
new
(MouseButtons.Left, 1, 2, 3, 4),
334 references to MouseEventArgs
System.Windows.Forms (132)
System\Windows\Forms\Control.cs (7)
5079
protected void RaiseMouseEvent(object key,
MouseEventArgs
e)
7747
protected virtual void OnMouseDoubleClick(
MouseEventArgs
e)
7756
protected virtual void OnMouseClick(
MouseEventArgs
e)
7774
protected virtual void OnMouseDown(
MouseEventArgs
e)
7836
protected virtual void OnMouseMove(
MouseEventArgs
e)
7845
protected virtual void OnMouseUp(
MouseEventArgs
e)
7854
protected virtual void OnMouseWheel(
MouseEventArgs
e)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
218
protected override void OnMouseUp(
MouseEventArgs
mevent)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
867
protected override void OnMouseMove(
MouseEventArgs
mevent)
898
protected override void OnMouseDown(
MouseEventArgs
mevent)
915
protected override void OnMouseUp(
MouseEventArgs
mevent)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
485
protected override void OnMouseUp(
MouseEventArgs
mevent)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
467
protected override void OnMouseUp(
MouseEventArgs
mevent)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1785
protected override void OnMouseDown(
MouseEventArgs
e)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (28)
3639
private bool ColumnRelocationTarget(
MouseEventArgs
e, HitTestInfo hti, out int previousColumnIndex)
5734
private void EditingControls_CommonMouseEventHandler(object? sender,
MouseEventArgs
e, DataGridViewMouseEvent dgvme)
5752
MouseEventArgs
me = new(
5919
MouseEventArgs
meTmp = new(
5951
if (e is
MouseEventArgs
me)
5961
if (e is
MouseEventArgs
me)
5967
private void EditingControls_MouseClick(object? sender,
MouseEventArgs
e)
5973
private void EditingControls_MouseDoubleClick(object? sender,
MouseEventArgs
e)
5979
private void EditingControls_MouseDown(object? sender,
MouseEventArgs
e)
6027
private void EditingControls_MouseMove(object? sender,
MouseEventArgs
e)
6033
private void EditingControls_MouseUp(object? sender,
MouseEventArgs
e)
6039
private void EndColumnHeadersResize(
MouseEventArgs
e)
6062
private void EndColumnRelocation(
MouseEventArgs
e, HitTestInfo hti)
6096
private void EndColumnResize(
MouseEventArgs
e)
6283
private void EndRowHeadersResize(
MouseEventArgs
e)
6316
private void EndRowResize(
MouseEventArgs
e)
10427
private void MoveColumnHeadersOrRowResize(
MouseEventArgs
e)
10488
private void MoveColumnRelocation(
MouseEventArgs
e, HitTestInfo hti)
14944
if (e is
MouseEventArgs
me)
15859
protected override void OnMouseClick(
MouseEventArgs
e)
15950
protected override void OnMouseDoubleClick(
MouseEventArgs
e)
16091
protected override void OnMouseDown(
MouseEventArgs
e)
16184
protected override void OnMouseMove(
MouseEventArgs
e)
16341
protected override void OnMouseUp(
MouseEventArgs
e)
16364
MouseEventArgs
meTmp = new(e.Button, 2, e.X, e.Y, e.Delta);
16449
protected override void OnMouseWheel(
MouseEventArgs
e)
16645
internal void OnMouseWheelInternal(
MouseEventArgs
e)
29154
private void UpdateMouseEnteredCell(HitTestInfo? hti,
MouseEventArgs
? e)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellMouseEventArgs.cs (1)
13
MouseEventArgs
? e)
System\Windows\Forms\Controls\DataGridView\DataGridViewElement.cs (1)
103
protected void RaiseMouseWheel(
MouseEventArgs
e)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
238
protected override void OnMouseWheel(
MouseEventArgs
e)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
832
protected override void OnMouseDown(
MouseEventArgs
e)
861
protected override void OnMouseUp(
MouseEventArgs
e)
894
protected override void OnMouseMove(
MouseEventArgs
e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (7)
2396
private void OnChildMouseMove(object? sender,
MouseEventArgs
e)
2411
private void OnChildMouseDown(object? sender,
MouseEventArgs
e)
2535
internal void OnGridViewMouseWheel(
MouseEventArgs
e) => OnMouseWheel(e);
2767
protected override void OnMouseDown(
MouseEventArgs
me)
2782
protected override void OnMouseMove(
MouseEventArgs
me)
2811
protected override void OnMouseUp(
MouseEventArgs
me)
4098
private bool ShouldForwardChildMouseMessage(Control? child,
MouseEventArgs
e, ref Point point)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (2)
51
protected override void OnMouseUp(
MouseEventArgs
e)
59
protected override void OnMouseDown(
MouseEventArgs
e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (6)
2251
private void OnListMouseUp(object? sender,
MouseEventArgs
me)
2569
private void OnEditMouseDown(object? sender,
MouseEventArgs
e)
2944
protected override void OnMouseDown(
MouseEventArgs
e)
3011
protected override void OnMouseMove(
MouseEventArgs
e)
3102
protected override void OnMouseUp(
MouseEventArgs
e) => CancelSplitterMove();
3104
protected override void OnMouseWheel(
MouseEventArgs
e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (3)
390
protected override void OnMouseDown(
MouseEventArgs
e)
413
protected override void OnMouseMove(
MouseEventArgs
e)
490
protected override void OnMouseUp(
MouseEventArgs
e)
System\Windows\Forms\Controls\Splitter\Splitter.cs (3)
810
protected override void OnMouseDown(
MouseEventArgs
e)
819
protected override void OnMouseMove(
MouseEventArgs
e)
833
protected override void OnMouseUp(
MouseEventArgs
e)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2072
protected override void OnMouseDown(
MouseEventArgs
e)
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
660
protected override void OnMouseDown(
MouseEventArgs
e)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1462
protected override void OnMouseUp(
MouseEventArgs
mevent)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3308
protected override void OnMouseDown(
MouseEventArgs
mea)
3346
protected override void OnMouseMove(
MouseEventArgs
mea)
3421
protected override void OnMouseUp(
MouseEventArgs
mea)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (3)
518
private void HandleMouseDown(object? sender,
MouseEventArgs
e)
542
private void HandleMouseMove(object? sender,
MouseEventArgs
e)
548
private void HandleMouseUp(object? sender,
MouseEventArgs
e)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1205
protected override void OnMouseUp(
MouseEventArgs
mea)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (2)
129
protected override void OnMouseDown(
MouseEventArgs
e)
150
protected override void OnMouseUp(
MouseEventArgs
e)
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (3)
118
protected override void OnMouseDown(
MouseEventArgs
mea)
124
protected override void OnMouseMove(
MouseEventArgs
mea)
213
protected override void OnMouseUp(
MouseEventArgs
mea)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (10)
2297
HandleMouseMove((
MouseEventArgs
)e);
2303
HandleMouseUp((
MouseEventArgs
)e);
2306
HandleMouseDown((
MouseEventArgs
)e);
2494
private void HandleMouseMove(
MouseEventArgs
mea)
2542
private void HandleMouseDown(
MouseEventArgs
e)
2557
private void HandleMouseUp(
MouseEventArgs
e)
2839
protected virtual void OnMouseMove(
MouseEventArgs
mea)
2862
protected virtual void OnMouseDown(
MouseEventArgs
e)
2869
protected virtual void OnMouseUp(
MouseEventArgs
e)
3081
internal void RaiseMouseEvent(object key,
MouseEventArgs
e) => ((MouseEventHandler?)Events[key])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
842
protected override void OnMouseDown(
MouseEventArgs
e)
848
protected override void OnMouseUp(
MouseEventArgs
e)
854
private void OnMouseButtonStateChange(
MouseEventArgs
e, bool isMouseDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (2)
79
protected override void OnMouseDown(
MouseEventArgs
e)
91
protected override void OnMouseUp(
MouseEventArgs
e)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
419
protected override void OnMouseDown(
MouseEventArgs
e)
439
protected override void OnMouseUp(
MouseEventArgs
e)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
910
protected override void OnMouseWheel(
MouseEventArgs
e)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (6)
679
protected override void OnMouseDown(
MouseEventArgs
e)
692
protected override void OnMouseUp(
MouseEventArgs
mevent)
720
protected override void OnMouseWheel(
MouseEventArgs
e)
900
/// Create a new <see cref="
MouseEventArgs
"/> with the points translated from the <paramref name="child"/>
903
private
MouseEventArgs
TranslateMouseEvent(Control child,
MouseEventArgs
e)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (5)
57
private void BeginButtonPress(
MouseEventArgs
e)
110
protected override void OnMouseDown(
MouseEventArgs
e)
135
protected override void OnMouseMove(
MouseEventArgs
e)
211
protected override void OnMouseUp(
MouseEventArgs
e)
223
MouseEventArgs
me = _parent.TranslateMouseEvent(this, e);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (3)
42
protected override void OnMouseDown(
MouseEventArgs
e)
61
protected override void OnMouseUp(
MouseEventArgs
e)
63
MouseEventArgs
me = _parent.TranslateMouseEvent(this, e);
System\Windows\Forms\Input\MouseEventArgs.cs (2)
13
/// Initializes a new instance of the <see cref="
MouseEventArgs
"/> class.
25
/// Initializes a new instance of the <see cref="
MouseEventArgs
"/> class.
System\Windows\Forms\Input\MouseEventHandler.cs (1)
11
public delegate void MouseEventHandler(object? sender,
MouseEventArgs
e);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (3)
1062
protected override void OnMouseMove(
MouseEventArgs
e)
1131
protected override void OnMouseDown(
MouseEventArgs
e)
1171
protected override void OnMouseUp(
MouseEventArgs
e)
System\Windows\Forms\NotifyIcon.cs (5)
463
private void OnMouseClick(
MouseEventArgs
mea)
472
private void OnMouseDoubleClick(
MouseEventArgs
mea)
482
private void OnMouseDown(
MouseEventArgs
e)
491
private void OnMouseMove(
MouseEventArgs
e)
500
private void OnMouseUp(
MouseEventArgs
e)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
318
protected override void OnMouseDown(
MouseEventArgs
e)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
604
protected override void OnMouseWheel(
MouseEventArgs
e)
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
533
protected override void OnMouseWheel(
MouseEventArgs
e)
System\Windows\Forms\ToolTip\ToolTip.cs (1)
867
private void MouseMove(object? sender,
MouseEventArgs
me)
System\Windows\Forms\UserControl.cs (1)
292
protected override void OnMouseDown(
MouseEventArgs
e)
System.Windows.Forms.Design (33)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
122
protected override void OnMouseDown(
MouseEventArgs
e)
168
protected override void OnMouseUp(
MouseEventArgs
mevent)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
254
protected override void OnReadOnlyTextBoxLabelClick(object? sender,
MouseEventArgs
e)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (2)
21
protected override void OnMouseDown(
MouseEventArgs
e)
43
protected override void OnMouseUp(
MouseEventArgs
e)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
155
protected virtual void OnReadOnlyTextBoxLabelClick(object? sender,
MouseEventArgs
e)
System\Drawing\Design\ColorEditor.ColorPalette.cs (3)
305
protected override void OnMouseDown(
MouseEventArgs
me)
319
protected override void OnMouseMove(
MouseEventArgs
me)
333
protected override void OnMouseUp(
MouseEventArgs
me)
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
258
protected override void OnMouseDown(
MouseEventArgs
e)
System\Windows\Forms\Design\ComponentTray.cs (11)
1033
protected override void OnMouseDoubleClick(
MouseEventArgs
e)
1217
protected override void OnMouseDown(
MouseEventArgs
e)
1288
protected override void OnMouseMove(
MouseEventArgs
e)
1321
protected override void OnMouseUp(
MouseEventArgs
e)
2147
protected override void OnMouseDown(
MouseEventArgs
me)
2179
protected override void OnMouseMove(
MouseEventArgs
me)
2231
protected override void OnMouseUp(
MouseEventArgs
me)
2687
public bool OnMouseDoubleClick(
MouseEventArgs
e)
2701
public bool OnMouseDown(
MouseEventArgs
e)
2715
public bool OnMouseMove(
MouseEventArgs
e)
2729
public bool OnMouseUp(
MouseEventArgs
e)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1750
private void treeViewCtrl_MouseMove(object? sender,
MouseEventArgs
e)
System\Windows\Forms\Design\SelectionUIService.cs (3)
512
protected override void OnMouseDown(
MouseEventArgs
me)
603
protected override void OnMouseMove(
MouseEventArgs
me)
714
protected override void OnMouseUp(
MouseEventArgs
me)
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
281
private void OnSplitContainer(object? sender,
MouseEventArgs
e)
System\Windows\Forms\Design\TabOrder.cs (2)
572
protected override void OnMouseDown(
MouseEventArgs
e)
606
protected override void OnMouseMove(
MouseEventArgs
e)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (5)
458
private void CenterLabelClick(object sender,
MouseEventArgs
e)
607
private void CenterLabelMouseMove(object sender,
MouseEventArgs
e)
1150
private void OnMouseUp(object sender,
MouseEventArgs
e)
1167
private void OnMouseDown(object sender,
MouseEventArgs
e)
1180
private void OnMouseMove(object sender,
MouseEventArgs
e)
System.Windows.Forms.Tests (157)
CheckedListBoxTests.cs (2)
792
MouseEventArgs
eventArgs = new(MouseButtons.Left, 1, 0, 0, 0);
877
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
275
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
System\Windows\Forms\ButtonBaseTests.cs (13)
6113
public void ButtonBase_OnMouseDown_Invoke_CallsMouseDown(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs)
6162
public void ButtonBase_OnMouseDown_InvokeWithHandle_CallsMouseDown(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
6528
public void ButtonBase_OnMouseMove_Invoke_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs)
6558
public void ButtonBase_OnMouseMove_InvokeMousePressed_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs)
6589
public void ButtonBase_OnMouseMove_InvokeMousePressedLeave_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs)
6642
public void ButtonBase_OnMouseMove_InvokeWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
6708
public void ButtonBase_OnMouseMove_InvokeMousePressedWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
6775
public void ButtonBase_OnMouseMove_InvokeMousePressedLeaveWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
6843
public void ButtonBase_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
6880
public void ButtonBase_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
9357
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
9363
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
9365
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
System\Windows\Forms\ButtonTests.cs (10)
2226
public void Button_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
2266
public void Button_OnMouseDown_Invoke_CallsMouseDown(bool enabled,
MouseEventArgs
eventArgs)
2311
public void Button_OnMouseDown_InvokeWithHandle_CallsMouseDown(bool enabled,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
2658
public void Button_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
2710
public void Button_OnMouseUp_InvokeMouseDown_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs, bool expectedIsHandleCreated)
2748
public void Button_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
2814
public void Button_OnMouseUp_InvokeMouseDownWithHandle_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
3757
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
3759
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
3765
public new void OnMouseUp(
MouseEventArgs
eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\CheckBoxTests.cs (6)
600
public void CheckBox_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
706
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
708
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
714
internal new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
716
internal new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
824
MouseEventArgs
eventArgs = new(MouseButtons.Left, 1, new Point(0, 0), 0);
System\Windows\Forms\ControlTests.cs (6)
1322
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
1324
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
1326
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
1334
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
1336
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
1338
public new void OnMouseWheel(
MouseEventArgs
e) => base.OnMouseWheel(e);
System\Windows\Forms\ControlTests.Handlers.cs (6)
3394
public void Control_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
3420
public void Control_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
3446
public void Control_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
3550
public void Control_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
3576
public void Control_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
3602
public void Control_OnMouseWheel_Invoke_CallsMouseWheel(
MouseEventArgs
eventArgs)
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (1)
20
public void Ctor_Int_Int_Int_Int_MouseEventArgs(int columnIndex, int rowIndex, int localX, int localY,
MouseEventArgs
mouseE)
System\Windows\Forms\DataGridViewElementTests.cs (4)
327
public void DataGridViewElement_RaiseMouseWheel_Invoke_Nop(
MouseEventArgs
eventArgs)
335
public void DataGridViewElement_RaiseMouseWheel_InvokeWithDataGridView_Success(
MouseEventArgs
eventArgs)
394
public new void RaiseMouseWheel(
MouseEventArgs
e) => base.RaiseMouseWheel(e);
411
public new void RaiseMouseWheel(
MouseEventArgs
e) => base.RaiseMouseWheel(e);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (3)
1305
public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_OnMouseWheel_Invoke_CallsMouseWheel(
MouseEventArgs
eventArgs)
1324
public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_OnMouseWheel_InvokeWithDataGridView_CallsMouseWheel(
MouseEventArgs
eventArgs)
2176
public new void OnMouseWheel(
MouseEventArgs
e) => base.OnMouseWheel(e);
System\Windows\Forms\DateTimePickerTests.cs (2)
1076
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
1078
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\GroupBoxTests.cs (10)
1657
public void GroupBox_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
1681
public void GroupBox_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
1705
public void GroupBox_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
1777
public void GroupBox_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
1801
public void GroupBox_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
2371
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
2373
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
2375
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
2381
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
2383
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
System\Windows\Forms\ListBoxTests.cs (2)
5673
public void ListBox_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
6492
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
System\Windows\Forms\MonthCalendarTests.cs (4)
3713
public void MonthCalendar_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
3737
public void MonthCalendar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
4810
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
4812
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\MouseEventArgsTests.cs (1)
19
MouseEventArgs
e = new(button, clicks, x, y, delta);
System\Windows\Forms\NotifyIconTests.cs (5)
651
void handler(object sender,
MouseEventArgs
e)
666
void handler(object sender,
MouseEventArgs
e)
681
void handler(object sender,
MouseEventArgs
e)
696
void handler(object sender,
MouseEventArgs
e)
711
void handler(object sender,
MouseEventArgs
e)
System\Windows\Forms\ProgressBarTests.cs (2)
2324
public void ProgressBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
2670
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\PropertyGridTests.cs (9)
3716
public void PropertyGrid_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs, bool expectedIsHandleCreated)
3721
void handler(object sender,
MouseEventArgs
e)
3817
public void PropertyGrid_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
3821
void handler(object sender,
MouseEventArgs
e)
3850
public void PropertyGrid_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
3855
void handler(object sender,
MouseEventArgs
e)
4241
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
4247
public new void OnMouseMove(
MouseEventArgs
eventargs) => base.OnMouseMove(eventargs);
4249
public new void OnMouseUp(
MouseEventArgs
eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\RadioButtonTests.cs (8)
1022
public void RadioButton_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
1063
public void RadioButton_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
1116
public void RadioButton_OnMouseUp_InvokeMouseDown_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs, bool expectedIsHandleCreated)
1154
public void RadioButton_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
1219
public void RadioButton_OnMouseUp_InvokeMouseDownWithHandle_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
1611
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
1613
public new void OnMouseDown(
MouseEventArgs
eventargs) => base.OnMouseDown(eventargs);
1615
public new void OnMouseUp(
MouseEventArgs
eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\ScrollBarTests.cs (13)
2067
public void ScrollBar_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
2091
public void ScrollBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
2115
public void ScrollBar_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
2139
public void ScrollBar_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
2163
public void ScrollBar_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
2187
public void ScrollBar_OnMouseWheel_Invoke_CallsMouseWheel(
MouseEventArgs
eventArgs)
2480
MouseEventArgs
eventArgs = new(MouseButtons.Left, 0, 0, 0, delta);
3230
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
3232
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
3234
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
3236
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
3238
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
3240
public new void OnMouseWheel(
MouseEventArgs
e) => base.OnMouseWheel(e);
System\Windows\Forms\SplitterTests.cs (9)
1965
public void Splitter_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
2007
public void Splitter_OnMouseDown_InvokeWithTarget_CallsMouseDown(
MouseEventArgs
eventArgs, bool expectedIsHandleCreated)
2061
public void Splitter_OnMouseDown_InvokeWithHandle_CallsMouseDown(
MouseEventArgs
eventArgs)
2108
public void Splitter_OnMouseDown_InvokeWithTargetWithHandle_CallsMouseDown(
MouseEventArgs
eventArgs)
2182
public void Splitter_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
2214
public void Splitter_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
2379
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
2381
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
2383
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripControlHostTests.cs (6)
3658
public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseDown_Success(
MouseEventArgs
eventArgs)
3738
public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseMove_Success(
MouseEventArgs
eventArgs)
3758
public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseUp_Success(
MouseEventArgs
eventArgs)
4602
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
4610
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
4612
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5216
public new void OnMouseUp(
MouseEventArgs
mea) => base.OnMouseUp(mea);
System\Windows\Forms\ToolStripItemTests.cs (8)
11763
public void ToolStripItem_OnMouseDown_Invoke_Nop(
MouseEventArgs
eventArgs)
12072
public void ToolStripItem_OnMouseMove_Invoke_Nop(
MouseEventArgs
eventArgs)
12096
public void ToolStripItem_OnMouseUp_Invoke_Nop(
MouseEventArgs
eventArgs)
15438
public void MoveMouse(
MouseEventArgs
mea)
15448
public new void OnMouseDown(
MouseEventArgs
mea) => base.OnMouseDown(mea);
15565
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
15573
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
15575
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripTests.cs (3)
7625
public new void OnMouseDown(
MouseEventArgs
mea) => base.OnMouseDown(mea);
7629
public new void OnMouseMove(
MouseEventArgs
mea) => base.OnMouseMove(mea);
7631
public new void OnMouseUp(
MouseEventArgs
mea) => base.OnMouseUp(mea);
System\Windows\Forms\UpDownBaseTests.cs (8)
2017
public void UpDownBase_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
2120
public void UpDownBase_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
2144
public void UpUpBase_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
2175
public void UpDownBase_OnMouseWheel_Invoke_CallsMouseWheel(
MouseEventArgs
eventArgs)
3200
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
3208
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
3210
public new void OnMouseUp(
MouseEventArgs
mevent) => base.OnMouseUp(mevent);
3212
public new void OnMouseWheel(
MouseEventArgs
e) => base.OnMouseWheel(e);
System\Windows\Forms\UserControlTests.cs (3)
993
public void UserControl_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
1019
public void UserControl_OnMouseDown_InvokeWithHandle_CallsMouseDown(
MouseEventArgs
eventArgs)
1875
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
TextBoxBaseTests.cs (5)
5562
public void TextBoxBase_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
5600
public void TextBoxBase_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
5634
public void TextBoxBase_OnMouseUp_InvokeWithHandle_CallsMouseUp(
MouseEventArgs
eventArgs)
7763
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
7765
public new void OnMouseUp(
MouseEventArgs
mevent) => base.OnMouseUp(mevent);
TrackBarTests.cs (6)
2494
public void TrackBar_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
2518
public void TrackBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
2555
public void TrackBar_OnMouseWheel_Invoke_CallsMouseWheel(
MouseEventArgs
eventArgs)
3354
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
3356
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
3358
public new void OnMouseWheel(
MouseEventArgs
e) => base.OnMouseWheel(e);
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
150
public static TheoryData<
MouseEventArgs
> GetMouseEventArgsTheoryData()
152
return new TheoryData<
MouseEventArgs
>
System.Windows.Forms.UI.IntegrationTests (5)
DragDropTests.cs (5)
706
private void ListDragSource_MouseDown(object? sender,
MouseEventArgs
e)
732
private void ListDragSource_MouseUp(object? sender,
MouseEventArgs
e)
739
private void ListDragSource_MouseMove(object? sender,
MouseEventArgs
e)
1076
private void DragAcceptItem_MouseDown(object? sender,
MouseEventArgs
e)
1141
private void PictureBoxDragSource_MouseDown(object? sender,
MouseEventArgs
e)
UnsupportedTypes (1)
CreateFrameworkTypes.cs (1)
318
public static void DataGrid_MouseUp(object sender,
MouseEventArgs
e)
WinFormsControlsTest (4)
DragDrop.cs (4)
174
private void PictureBox_MouseDown(object? sender,
MouseEventArgs
e)
532
private void DragAcceptItem_MouseDown(object? sender,
MouseEventArgs
e)
550
private void NyanCatItem_MouseDown(object? sender,
MouseEventArgs
e)
562
private void AsciiCatItem_MouseDown(object? sender,
MouseEventArgs
e)