419 references to MouseEventArgs
System.Windows.Forms (37)
System\Windows\Forms\ActiveX\AxHost.cs (3)
3891
base.OnMouseMove(new
MouseEventArgs
((MouseButtons)(button << 20), 1, x, y, 0));
3909
base.OnMouseUp(new
MouseEventArgs
((MouseButtons)(button << 20), 1, x, y, 0));
3927
base.OnMouseDown(new
MouseEventArgs
((MouseButtons)(button << 20), 1, x, y, 0));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (8)
1592
OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, Ptlc.X, Ptlc.Y, 0));
1609
OnMouseDown(new
MouseEventArgs
(MouseButtons.Middle, 1, Ptmc.X, Ptmc.Y, 0));
1626
OnMouseDown(new
MouseEventArgs
(MouseButtons.Right, 1, Ptrc.X, Ptrc.Y, 0));
1640
OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, Ptl.X, Ptl.Y, 0));
1685
OnMouseDown(new
MouseEventArgs
(MouseButtons.Middle, 1, P.X, P.Y, 0));
1702
OnMouseDown(new
MouseEventArgs
(MouseButtons.Right, 1, Pt.X, Pt.Y, 0));
1722
OnMouseUp(new
MouseEventArgs
(MouseButtons.Right, 1, ptRBtnUp.X, ptRBtnUp.Y, 0));
1744
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
(
16348
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)
6652
OnMouseClick(new
MouseEventArgs
(button, 1, pos.X, pos.Y, 0));
6657
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)
3333
mea = new
MouseEventArgs
(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta);
3389
mea = new
MouseEventArgs
(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta);
3433
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)
21
:
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)
2777
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)
3811
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3813
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3814
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3816
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3817
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3819
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3820
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3822
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3823
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 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)) };
3826
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3828
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3844
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3845
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3846
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3847
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3848
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3849
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3850
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3851
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3852
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3853
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3854
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3855
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3856
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3857
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 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 };
3859
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3860
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3861
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3899
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3900
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3901
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3902
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3903
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3904
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4039
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4107
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4108
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4109
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4110
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4111
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4112
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4113
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4114
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4115
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4116
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4117
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4118
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4119
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4120
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 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)) };
4122
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4123
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4124
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4140
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4141
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 };
4142
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4143
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4144
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 };
4145
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4146
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4147
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 };
4148
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4149
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4150
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 };
4151
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4152
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4153
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 };
4154
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4155
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4156
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4159
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal };
4213
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
4398
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4428
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4447
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4448
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4449
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4450
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4451
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4452
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4453
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4454
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4455
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4456
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4457
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4458
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4459
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4460
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4461
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4462
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4463
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4467
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4512
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
4522
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4523
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4524
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4525
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4526
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4527
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4528
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4529
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4530
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4531
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4532
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4533
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4534
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4535
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4536
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4537
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4538
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4541
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal };
4569
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4596
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
System\Windows\Forms\DataGridViewTests.cs (8)
3743
DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3748
args = new(0, 1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3770
DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3775
args = new(0, 1, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3822
DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3827
args = new(1, -1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3848
DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3853
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));
14451
owner.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
14540
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),