3 types derived from MouseEventArgs
System.Windows.Forms (3)
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\Input\HandledMouseEventArgs.cs (1)
6
public class HandledMouseEventArgs :
MouseEventArgs
444 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)
11428
OnMouseDown(new
MouseEventArgs
(button, clicks, PARAM.ToPoint(m.LParamInternal)));
11549
OnMouseMove(new
MouseEventArgs
(MouseButtons, 0, PARAM.ToPoint(m.LParamInternal)));
11586
OnClick(new
MouseEventArgs
(button, clicks, location));
11587
OnMouseClick(new
MouseEventArgs
(button, clicks, location));
11591
OnDoubleClick(new
MouseEventArgs
(button, 2, location));
11592
OnMouseDoubleClick(new
MouseEventArgs
(button, 2, location));
11596
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)
5755
MouseEventArgs me =
new
(
5792
me = new
MouseEventArgs
(
5852
me = new
MouseEventArgs
(
5922
MouseEventArgs meTmp =
new
(
16367
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 (381)
CheckedListBoxTests.cs (1)
790
MouseEventArgs eventArgs =
new
(MouseButtons.Left, 1, 0, 0, 0);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
57
button.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ButtonBaseTests.cs (99)
5544
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5648
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5729
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5813
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5918
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6008
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6017
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6096
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
6097
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
6098
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
6099
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
6100
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
6101
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
6102
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
6103
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
6104
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
6145
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6146
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 1 };
6147
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
6148
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 1 };
6149
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
6150
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 1 };
6151
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
6152
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 1 };
6153
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
6509
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
6510
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
6511
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
6512
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
6513
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
6514
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
6515
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
6516
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
6517
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
6518
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0) };
6519
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0) };
6563
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6594
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6623
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6624
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 0 };
6625
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
6626
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 0 };
6627
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
6628
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 0 };
6629
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
6630
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 0 };
6631
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
6632
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0), 0 };
6633
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0), 0 };
6687
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6688
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 0 };
6689
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
6690
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 0 };
6691
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
6692
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 0 };
6693
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
6694
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 0 };
6695
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
6696
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0), 1 };
6697
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0), 1 };
6698
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, -1, 0), 1 };
6699
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, int.MaxValue, int.MaxValue, 0), 1 };
6713
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6754
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6755
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 1 };
6756
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 1 };
6757
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 1 };
6758
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 1 };
6759
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 1 };
6760
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 1 };
6761
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 1 };
6762
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 1 };
6763
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0), 0 };
6764
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0), 0 };
6765
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, -1, 0), 0 };
6766
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, int.MaxValue, int.MaxValue, 0), 0 };
6780
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6828
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
6829
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
6830
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
6831
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
7642
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7673
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7705
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7791
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7833
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7876
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7967
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8003
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8040
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8136
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8183
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8231
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8472
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8508
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8545
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8641
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8688
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8736
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ButtonTests.cs (33)
1059
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
2250
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
2251
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
2252
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
2253
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
2254
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
2255
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
2256
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
2257
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
2258
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
2295
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
2296
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 1 };
2297
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
2298
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 1 };
2299
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
2300
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 1 };
2301
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
2302
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 1 };
2303
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
2643
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
2644
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
2645
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
2646
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
2695
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), false };
2696
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), true };
2697
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), false };
2698
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), false };
2714
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
2799
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), 0 };
2800
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), expectedCallCount };
2801
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), 0 };
2802
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), 0 };
2818
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ComboBoxTests.cs (1)
2776
public void OnMouseDown(Point p) => base.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, p.X, p.Y, 0));
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (5)
11
yield return new object[] { -1, -1, -1, -1, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
12
yield return new object[] { 0, 0, 0, 0, new
MouseEventArgs
((MouseButtons)1, 0, 0, 0, 0) };
13
yield return new object[] { 1, 2, 3, 4, new
MouseEventArgs
((MouseButtons)3, -1, -1, -1, -2) };
34
Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellMouseEventArgs(-2, 0, 1, 2, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4)));
41
Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellMouseEventArgs(0, -2, 1, 2, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4)));
System\Windows\Forms\DataGridViewCellTests.cs (38)
5497
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5498
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5499
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5500
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5501
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5502
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5503
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5504
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5505
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5506
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5507
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5508
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5509
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5510
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5511
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5512
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5513
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5514
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5530
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5531
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5532
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5533
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5534
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5535
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5536
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5537
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5538
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5539
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5540
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5541
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5542
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5543
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5544
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5545
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5546
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5547
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
6475
cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new
MouseEventArgs
(MouseButtons.Left, 1, 10, 10, 0)));
6483
cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new
MouseEventArgs
(MouseButtons.Left, 1, 10, 10, 0)));
System\Windows\Forms\DataGridViewHeaderCellTests.cs (115)
3808
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3810
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3811
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3813
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3814
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3816
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3817
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3819
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3820
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3822
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3823
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3825
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3841
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3842
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3843
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3844
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3845
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3846
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3847
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3848
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3849
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3850
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3851
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3852
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3853
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3854
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3855
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3856
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3857
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3858
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3896
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3897
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3898
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3899
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 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, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4036
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4104
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4105
yield return new object[] { 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.Middle, 0, 0, 0, 0)) };
4107
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4108
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4109
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4110
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4111
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4112
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4113
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4114
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4115
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4116
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4117
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4118
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4119
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4120
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4121
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4137
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4138
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 };
4139
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4140
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4141
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 };
4142
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4143
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4144
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 };
4145
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4146
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4147
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 };
4148
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4149
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4150
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 };
4151
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4152
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4153
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4156
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal };
4210
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
4395
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4425
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4444
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4445
yield return new object[] { enableHeadersVisualStyles, 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.Middle, 0, 0, 0, 0)) };
4447
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4448
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4449
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4450
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4451
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4452
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4453
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4454
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4455
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4456
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4457
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4458
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4459
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4460
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4464
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4509
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
4519
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4520
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4521
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4522
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4523
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4524
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4525
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4526
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4527
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4528
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4529
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4530
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4531
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4532
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4533
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4534
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4535
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4538
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal };
4566
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4593
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
System\Windows\Forms\DataGridViewTests.cs (8)
3742
DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3747
args = new(0, 1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3769
DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3774
args = new(0, 1, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3821
DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3826
args = new(1, -1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3847
DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3852
args = new(1, -1, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
System\Windows\Forms\DateTimePickerTests.cs (4)
573
control.OnMouseClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
577
control.OnMouseClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
594
control.OnMouseDoubleClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
598
control.OnMouseDoubleClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\MouseEventArgsTests.cs (1)
17
MouseEventArgs e =
new
(button, clicks, x, y, delta);
System\Windows\Forms\PropertyGridTests.cs (18)
3701
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), false };
3702
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), true };
3703
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), false };
3704
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), true };
3705
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), false };
3706
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), true };
3707
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), false };
3708
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), true };
3709
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), false };
3802
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
3803
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
3804
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
3805
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
3806
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
3807
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
3808
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
3809
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
3810
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
System\Windows\Forms\RadioButtonTests.cs (14)
1048
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
1049
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
1050
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
1051
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
1101
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), false };
1102
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), expectedIsHandleCreated };
1103
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), false };
1104
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), false };
1120
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
1204
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
1205
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
1206
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
1207
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
1223
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ScrollBarTests.cs (1)
2478
MouseEventArgs eventArgs =
new
(MouseButtons.Left, 0, 0, 0, delta);
System\Windows\Forms\SplitterTests.cs (6)
1955
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 2, 3, 4) };
1956
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
1957
yield return new object[] { new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
1997
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 2, 3, 4), false };
1998
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), true };
1999
yield return new object[] { new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), false };
System\Windows\Forms\ToolStripControlHostTests.cs (3)
4083
c.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
4095
c.OnMouseMove(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
4098
c.OnMouseUp(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ToolStripItemTests.cs (5)
7738
owner.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
7776
parent.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
7794
parent.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
14432
owner.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
14521
parent.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
System\Windows\Forms\ToolStripTests.cs (1)
5831
toolStrip.OnMouseMove(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
System\Windows\Forms\UpDownBaseTests.cs (9)
2002
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
2003
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
2004
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
2005
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
2006
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
2007
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
2008
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
2009
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
2010
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
TextBoxBaseTests.cs (9)
5585
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
5586
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
5587
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
5588
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
5589
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
5590
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
5591
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
5592
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
5593
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
TrackBarTests.cs (9)
2540
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
2541
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
2542
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
2543
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
2544
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
2545
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
2546
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
2547
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
2548
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),
333 references to MouseEventArgs
System.Windows.Forms (132)
System\Windows\Forms\Control.cs (7)
5081
protected void RaiseMouseEvent(object key,
MouseEventArgs
e)
7749
protected virtual void OnMouseDoubleClick(
MouseEventArgs
e)
7758
protected virtual void OnMouseClick(
MouseEventArgs
e)
7776
protected virtual void OnMouseDown(
MouseEventArgs
e)
7838
protected virtual void OnMouseMove(
MouseEventArgs
e)
7847
protected virtual void OnMouseUp(
MouseEventArgs
e)
7856
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)
3642
private bool ColumnRelocationTarget(
MouseEventArgs
e, HitTestInfo hti, out int previousColumnIndex)
5737
private void EditingControls_CommonMouseEventHandler(object? sender,
MouseEventArgs
e, DataGridViewMouseEvent dgvme)
5755
MouseEventArgs
me = new(
5922
MouseEventArgs
meTmp = new(
5954
if (e is
MouseEventArgs
me)
5964
if (e is
MouseEventArgs
me)
5970
private void EditingControls_MouseClick(object? sender,
MouseEventArgs
e)
5976
private void EditingControls_MouseDoubleClick(object? sender,
MouseEventArgs
e)
5982
private void EditingControls_MouseDown(object? sender,
MouseEventArgs
e)
6030
private void EditingControls_MouseMove(object? sender,
MouseEventArgs
e)
6036
private void EditingControls_MouseUp(object? sender,
MouseEventArgs
e)
6042
private void EndColumnHeadersResize(
MouseEventArgs
e)
6065
private void EndColumnRelocation(
MouseEventArgs
e, HitTestInfo hti)
6099
private void EndColumnResize(
MouseEventArgs
e)
6286
private void EndRowHeadersResize(
MouseEventArgs
e)
6319
private void EndRowResize(
MouseEventArgs
e)
10430
private void MoveColumnHeadersOrRowResize(
MouseEventArgs
e)
10491
private void MoveColumnRelocation(
MouseEventArgs
e, HitTestInfo hti)
14947
if (e is
MouseEventArgs
me)
15862
protected override void OnMouseClick(
MouseEventArgs
e)
15953
protected override void OnMouseDoubleClick(
MouseEventArgs
e)
16094
protected override void OnMouseDown(
MouseEventArgs
e)
16187
protected override void OnMouseMove(
MouseEventArgs
e)
16344
protected override void OnMouseUp(
MouseEventArgs
e)
16367
MouseEventArgs
meTmp = new(e.Button, 2, e.X, e.Y, e.Delta);
16452
protected override void OnMouseWheel(
MouseEventArgs
e)
16648
internal void OnMouseWheelInternal(
MouseEventArgs
e)
29157
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)
2078
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)
2294
HandleMouseMove((
MouseEventArgs
)e);
2300
HandleMouseUp((
MouseEventArgs
)e);
2303
HandleMouseDown((
MouseEventArgs
)e);
2492
private void HandleMouseMove(
MouseEventArgs
mea)
2540
private void HandleMouseDown(
MouseEventArgs
e)
2555
private void HandleMouseUp(
MouseEventArgs
e)
2837
protected virtual void OnMouseMove(
MouseEventArgs
mea)
2860
protected virtual void OnMouseDown(
MouseEventArgs
e)
2867
protected virtual void OnMouseUp(
MouseEventArgs
e)
3077
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)
911
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)
610
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)
790
MouseEventArgs
eventArgs = new(MouseButtons.Left, 1, 0, 0, 0);
875
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
273
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
System\Windows\Forms\ButtonBaseTests.cs (13)
6111
public void ButtonBase_OnMouseDown_Invoke_CallsMouseDown(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs)
6160
public void ButtonBase_OnMouseDown_InvokeWithHandle_CallsMouseDown(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
6526
public void ButtonBase_OnMouseMove_Invoke_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs)
6556
public void ButtonBase_OnMouseMove_InvokeMousePressed_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs)
6587
public void ButtonBase_OnMouseMove_InvokeMousePressedLeave_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs)
6640
public void ButtonBase_OnMouseMove_InvokeWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
6706
public void ButtonBase_OnMouseMove_InvokeMousePressedWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
6773
public void ButtonBase_OnMouseMove_InvokeMousePressedLeaveWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
6841
public void ButtonBase_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
6878
public void ButtonBase_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
9355
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
9361
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
9363
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
System\Windows\Forms\ButtonTests.cs (10)
2224
public void Button_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
2264
public void Button_OnMouseDown_Invoke_CallsMouseDown(bool enabled,
MouseEventArgs
eventArgs)
2309
public void Button_OnMouseDown_InvokeWithHandle_CallsMouseDown(bool enabled,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
2656
public void Button_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
2708
public void Button_OnMouseUp_InvokeMouseDown_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs, bool expectedIsHandleCreated)
2746
public void Button_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
2812
public void Button_OnMouseUp_InvokeMouseDownWithHandle_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs, int expectedInvalidatedCallCount)
3755
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
3757
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
3763
public new void OnMouseUp(
MouseEventArgs
eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\CheckBoxTests.cs (6)
598
public void CheckBox_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
704
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
706
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
712
internal new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
714
internal new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
822
MouseEventArgs
eventArgs = new(MouseButtons.Left, 1, new Point(0, 0), 0);
System\Windows\Forms\ControlTests.cs (6)
1320
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
1322
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
1324
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
1332
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
1334
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
1336
public new void OnMouseWheel(
MouseEventArgs
e) => base.OnMouseWheel(e);
System\Windows\Forms\ControlTests.Handlers.cs (6)
3392
public void Control_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
3418
public void Control_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
3444
public void Control_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
3548
public void Control_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
3574
public void Control_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
3600
public void Control_OnMouseWheel_Invoke_CallsMouseWheel(
MouseEventArgs
eventArgs)
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (1)
18
public void Ctor_Int_Int_Int_Int_MouseEventArgs(int columnIndex, int rowIndex, int localX, int localY,
MouseEventArgs
mouseE)
System\Windows\Forms\DataGridViewElementTests.cs (4)
325
public void DataGridViewElement_RaiseMouseWheel_Invoke_Nop(
MouseEventArgs
eventArgs)
333
public void DataGridViewElement_RaiseMouseWheel_InvokeWithDataGridView_Success(
MouseEventArgs
eventArgs)
392
public new void RaiseMouseWheel(
MouseEventArgs
e) => base.RaiseMouseWheel(e);
409
public new void RaiseMouseWheel(
MouseEventArgs
e) => base.RaiseMouseWheel(e);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (3)
1303
public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_OnMouseWheel_Invoke_CallsMouseWheel(
MouseEventArgs
eventArgs)
1322
public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_OnMouseWheel_InvokeWithDataGridView_CallsMouseWheel(
MouseEventArgs
eventArgs)
2174
public new void OnMouseWheel(
MouseEventArgs
e) => base.OnMouseWheel(e);
System\Windows\Forms\DateTimePickerTests.cs (2)
1074
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
1076
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\GroupBoxTests.cs (10)
1655
public void GroupBox_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
1679
public void GroupBox_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
1703
public void GroupBox_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
1775
public void GroupBox_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
1799
public void GroupBox_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
2369
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
2371
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
2373
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
2379
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
2381
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
System\Windows\Forms\ListBoxTests.cs (2)
5671
public void ListBox_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
6490
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
System\Windows\Forms\MonthCalendarTests.cs (4)
3711
public void MonthCalendar_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
3735
public void MonthCalendar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
4808
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
4810
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\MouseEventArgsTests.cs (1)
17
MouseEventArgs
e = new(button, clicks, x, y, delta);
System\Windows\Forms\NotifyIconTests.cs (5)
649
void handler(object sender,
MouseEventArgs
e)
664
void handler(object sender,
MouseEventArgs
e)
679
void handler(object sender,
MouseEventArgs
e)
694
void handler(object sender,
MouseEventArgs
e)
709
void handler(object sender,
MouseEventArgs
e)
System\Windows\Forms\ProgressBarTests.cs (2)
2322
public void ProgressBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
2668
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\PropertyGridTests.cs (9)
3714
public void PropertyGrid_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs, bool expectedIsHandleCreated)
3719
void handler(object sender,
MouseEventArgs
e)
3815
public void PropertyGrid_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
3819
void handler(object sender,
MouseEventArgs
e)
3848
public void PropertyGrid_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
3853
void handler(object sender,
MouseEventArgs
e)
4239
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
4245
public new void OnMouseMove(
MouseEventArgs
eventargs) => base.OnMouseMove(eventargs);
4247
public new void OnMouseUp(
MouseEventArgs
eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\RadioButtonTests.cs (8)
1020
public void RadioButton_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
1061
public void RadioButton_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
1114
public void RadioButton_OnMouseUp_InvokeMouseDown_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs, bool expectedIsHandleCreated)
1152
public void RadioButton_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
1217
public void RadioButton_OnMouseUp_InvokeMouseDownWithHandle_CallsMouseUp(FlatStyle flatStyle,
MouseEventArgs
eventArgs)
1609
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
1611
public new void OnMouseDown(
MouseEventArgs
eventargs) => base.OnMouseDown(eventargs);
1613
public new void OnMouseUp(
MouseEventArgs
eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\ScrollBarTests.cs (13)
2065
public void ScrollBar_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
2089
public void ScrollBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
2113
public void ScrollBar_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
2137
public void ScrollBar_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
2161
public void ScrollBar_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
2185
public void ScrollBar_OnMouseWheel_Invoke_CallsMouseWheel(
MouseEventArgs
eventArgs)
2478
MouseEventArgs
eventArgs = new(MouseButtons.Left, 0, 0, 0, delta);
3228
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
3230
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
3232
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
3234
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
3236
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
3238
public new void OnMouseWheel(
MouseEventArgs
e) => base.OnMouseWheel(e);
System\Windows\Forms\SplitterTests.cs (9)
1963
public void Splitter_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
2005
public void Splitter_OnMouseDown_InvokeWithTarget_CallsMouseDown(
MouseEventArgs
eventArgs, bool expectedIsHandleCreated)
2059
public void Splitter_OnMouseDown_InvokeWithHandle_CallsMouseDown(
MouseEventArgs
eventArgs)
2106
public void Splitter_OnMouseDown_InvokeWithTargetWithHandle_CallsMouseDown(
MouseEventArgs
eventArgs)
2180
public void Splitter_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
2212
public void Splitter_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
2377
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
2379
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
2381
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripControlHostTests.cs (6)
3656
public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseDown_Success(
MouseEventArgs
eventArgs)
3736
public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseMove_Success(
MouseEventArgs
eventArgs)
3756
public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseUp_Success(
MouseEventArgs
eventArgs)
4600
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
4608
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
4610
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5214
public new void OnMouseUp(
MouseEventArgs
mea) => base.OnMouseUp(mea);
System\Windows\Forms\ToolStripItemTests.cs (8)
11761
public void ToolStripItem_OnMouseDown_Invoke_Nop(
MouseEventArgs
eventArgs)
12070
public void ToolStripItem_OnMouseMove_Invoke_Nop(
MouseEventArgs
eventArgs)
12094
public void ToolStripItem_OnMouseUp_Invoke_Nop(
MouseEventArgs
eventArgs)
15436
public void MoveMouse(
MouseEventArgs
mea)
15446
public new void OnMouseDown(
MouseEventArgs
mea) => base.OnMouseDown(mea);
15563
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
15571
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
15573
public new void OnMouseUp(
MouseEventArgs
e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripTests.cs (3)
7654
public new void OnMouseDown(
MouseEventArgs
mea) => base.OnMouseDown(mea);
7658
public new void OnMouseMove(
MouseEventArgs
mea) => base.OnMouseMove(mea);
7660
public new void OnMouseUp(
MouseEventArgs
mea) => base.OnMouseUp(mea);
System\Windows\Forms\UpDownBaseTests.cs (8)
2015
public void UpDownBase_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
2118
public void UpDownBase_OnMouseMove_Invoke_CallsMouseMove(
MouseEventArgs
eventArgs)
2142
public void UpUpBase_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
2173
public void UpDownBase_OnMouseWheel_Invoke_CallsMouseWheel(
MouseEventArgs
eventArgs)
3198
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
3206
public new void OnMouseMove(
MouseEventArgs
e) => base.OnMouseMove(e);
3208
public new void OnMouseUp(
MouseEventArgs
mevent) => base.OnMouseUp(mevent);
3210
public new void OnMouseWheel(
MouseEventArgs
e) => base.OnMouseWheel(e);
System\Windows\Forms\UserControlTests.cs (3)
991
public void UserControl_OnMouseDown_Invoke_CallsMouseDown(
MouseEventArgs
eventArgs)
1017
public void UserControl_OnMouseDown_InvokeWithHandle_CallsMouseDown(
MouseEventArgs
eventArgs)
1873
public new void OnMouseDown(
MouseEventArgs
e) => base.OnMouseDown(e);
TextBoxBaseTests.cs (5)
5560
public void TextBoxBase_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
5598
public void TextBoxBase_OnMouseUp_Invoke_CallsMouseUp(
MouseEventArgs
eventArgs)
5632
public void TextBoxBase_OnMouseUp_InvokeWithHandle_CallsMouseUp(
MouseEventArgs
eventArgs)
7761
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
7763
public new void OnMouseUp(
MouseEventArgs
mevent) => base.OnMouseUp(mevent);
TrackBarTests.cs (6)
2492
public void TrackBar_OnMouseClick_Invoke_CallsMouseClick(
MouseEventArgs
eventArgs)
2516
public void TrackBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(
MouseEventArgs
eventArgs)
2553
public void TrackBar_OnMouseWheel_Invoke_CallsMouseWheel(
MouseEventArgs
eventArgs)
3352
public new void OnMouseClick(
MouseEventArgs
e) => base.OnMouseClick(e);
3354
public new void OnMouseDoubleClick(
MouseEventArgs
e) => base.OnMouseDoubleClick(e);
3356
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)
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)