419 references to MouseEventArgs
System.Windows.Forms (37)
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\Controls\ComboBox\ComboBox.cs (8)
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));
1687
OnMouseDown(new
MouseEventArgs
(MouseButtons.Middle, 1, P.X, P.Y, 0));
1704
OnMouseDown(new
MouseEventArgs
(MouseButtons.Right, 1, Pt.X, Pt.Y, 0));
1724
OnMouseUp(new
MouseEventArgs
(MouseButtons.Right, 1, ptRBtnUp.X, ptRBtnUp.Y, 0));
1746
OnMouseMove(new
MouseEventArgs
(MouseButtons, 0, point.X, point.Y, 0));
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\DataGridView\DataGridViewCellMouseEventArgs.cs (1)
14
:
base
(e?.Button ?? MouseButtons.None, e?.Clicks ?? 0, localX, localY, e?.Delta ?? 0)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
6656
OnMouseClick(new
MouseEventArgs
(button, 1, pos.X, pos.Y, 0));
6661
OnMouseUp(new
MouseEventArgs
(button, 1, pos.X, pos.Y, 0));
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\TreeNodeMouseClickEventArgs.cs (1)
18
:
base
(
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
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));
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\Input\HandledMouseEventArgs.cs (1)
19
:
base
(button, clicks, x, y, 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),