421 references to MouseEventArgs
System.Windows.Forms (38)
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)
5752
MouseEventArgs me =
new
(
5789
me = new
MouseEventArgs
(
5849
me = new
MouseEventArgs
(
5919
MouseEventArgs meTmp =
new
(
16364
MouseEventArgs meTmp =
new
(e.Button, 2, e.X, e.Y, e.Delta);
System\Windows\Forms\Controls\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\Unsupported\StatusBar\StatusBarPanelClickEventArgs.cs (1)
27
int y) :
base
(button: button, clicks: clicks, x: x, y: y, delta: 0) => throw new PlatformNotSupportedException();
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 (382)
CheckedListBoxTests.cs (1)
792
MouseEventArgs eventArgs =
new
(MouseButtons.Left, 1, 0, 0, 0);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
59
button.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ButtonBaseTests.cs (99)
5546
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5650
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5731
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5815
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
5920
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6010
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6019
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6098
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
6099
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
6100
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
6101
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
6102
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
6103
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
6104
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
6105
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
6106
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
6147
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6148
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 1 };
6149
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
6150
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 1 };
6151
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
6152
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 1 };
6153
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
6154
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 1 };
6155
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
6511
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
6512
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
6513
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
6514
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
6515
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
6516
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
6517
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
6518
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
6519
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
6520
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0) };
6521
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0) };
6565
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6596
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6625
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6626
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 0 };
6627
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
6628
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 0 };
6629
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
6630
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 0 };
6631
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
6632
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 0 };
6633
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
6634
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0), 0 };
6635
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0), 0 };
6689
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6690
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 0 };
6691
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
6692
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 0 };
6693
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
6694
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 0 };
6695
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
6696
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 0 };
6697
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
6698
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0), 1 };
6699
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0), 1 };
6700
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, -1, 0), 1 };
6701
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, int.MaxValue, int.MaxValue, 0), 1 };
6715
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6756
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
6757
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 1 };
6758
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 1 };
6759
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 1 };
6760
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 1 };
6761
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 1 };
6762
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 1 };
6763
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 1 };
6764
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 1 };
6765
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, 0, 0), 0 };
6766
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, -1, 0), 0 };
6767
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, -1, -1, 0), 0 };
6768
yield return new object[] { flatStyle, enabled, new
MouseEventArgs
(MouseButtons.Right, 3, int.MaxValue, int.MaxValue, 0), 0 };
6782
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
6830
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
6831
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
6832
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
6833
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
7644
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7675
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7707
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7793
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7835
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7878
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
7969
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8005
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8042
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8138
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8185
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8233
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8474
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8510
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8547
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8643
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8690
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
8738
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ButtonTests.cs (33)
1061
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
2252
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
2253
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
2254
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
2255
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
2256
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
2257
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
2258
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
2259
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
2260
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
2297
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), 0 };
2298
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), 1 };
2299
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), 0 };
2300
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), 1 };
2301
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), 0 };
2302
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), 1 };
2303
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), 0 };
2304
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), 1 };
2305
yield return new object[] { enabled, new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), 0 };
2645
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
2646
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
2647
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
2648
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
2697
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), false };
2698
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), true };
2699
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), false };
2700
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), false };
2716
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
2801
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), 0 };
2802
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), expectedCallCount };
2803
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), 0 };
2804
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), 0 };
2820
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ComboBoxTests.cs (1)
2778
public void OnMouseDown(Point p) => base.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, p.X, p.Y, 0));
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (5)
13
yield return new object[] { -1, -1, -1, -1, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
14
yield return new object[] { 0, 0, 0, 0, new
MouseEventArgs
((MouseButtons)1, 0, 0, 0, 0) };
15
yield return new object[] { 1, 2, 3, 4, new
MouseEventArgs
((MouseButtons)3, -1, -1, -1, -2) };
36
Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellMouseEventArgs(-2, 0, 1, 2, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4)));
43
Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellMouseEventArgs(0, -2, 1, 2, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4)));
System\Windows\Forms\DataGridViewCellTests.cs (39)
5499
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5500
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5501
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5502
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5503
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5504
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5505
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5506
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5507
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5508
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5509
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5510
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5511
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5512
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5513
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5514
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5515
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5516
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5532
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5533
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5534
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5535
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5536
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5537
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5538
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5539
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5540
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5541
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5542
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5543
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5544
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5545
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5546
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
5547
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
5548
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
5549
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
6477
cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new
MouseEventArgs
(MouseButtons.Left, 1, 10, 10, 0)));
6485
cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new
MouseEventArgs
(MouseButtons.Left, 1, 10, 10, 0)));
6530
Action act = () => cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new
MouseEventArgs
(MouseButtons.Left, 1, 10, 10, 0)));
System\Windows\Forms\DataGridViewHeaderCellTests.cs (115)
3810
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3812
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3813
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3815
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3816
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3818
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3819
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3821
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3822
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3824
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3825
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
3827
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
3843
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3844
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3845
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3846
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3847
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3848
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3849
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3850
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3851
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3852
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3853
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3854
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3855
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3856
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3857
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3858
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), false };
3859
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles };
3860
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), false };
3898
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3899
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3900
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3901
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3902
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
3903
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4038
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4106
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4107
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4108
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4109
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4110
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4111
yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4112
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4113
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4114
yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4115
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4116
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4117
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4118
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4119
yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4120
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4121
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4122
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4123
yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4139
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4140
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4141
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4142
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4143
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4144
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4145
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4146
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4147
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4148
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4149
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4150
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4151
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4152
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4153
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4154
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal };
4155
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal };
4158
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal };
4212
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
4397
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4427
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4446
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4447
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4448
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4449
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4450
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4451
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4452
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4453
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4454
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4455
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4456
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4457
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4458
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4459
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4460
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4461
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)) };
4462
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)) };
4466
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)) };
4511
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
4521
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4522
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4523
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4524
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4525
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4526
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4527
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4528
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4529
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4530
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4531
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4532
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4533
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4534
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 };
4535
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4536
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 };
4537
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 };
4540
yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal };
4568
cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0)));
4595
DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0));
System\Windows\Forms\DataGridViewTests.cs (8)
3744
DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3749
args = new(0, 1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3771
DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3776
args = new(0, 1, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3823
DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3828
args = new(1, -1, 0, 0,
new
(MouseButtons.Left, 1, 0, 0, 0));
3849
DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3854
args = new(1, -1, 0, 0,
new
(MouseButtons.Left, 2, 0, 0, 0));
System\Windows\Forms\DateTimePickerTests.cs (4)
575
control.OnMouseClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
579
control.OnMouseClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
596
control.OnMouseDoubleClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
600
control.OnMouseDoubleClick(
new
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\MouseEventArgsTests.cs (1)
19
MouseEventArgs e =
new
(button, clicks, x, y, delta);
System\Windows\Forms\PropertyGridTests.cs (18)
3703
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0), false };
3704
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0), true };
3705
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0), false };
3706
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0), true };
3707
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0), false };
3708
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0), true };
3709
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0), false };
3710
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0), true };
3711
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0), false };
3804
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
3805
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
3806
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
3807
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
3808
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
3809
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
3810
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
3811
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
3812
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
System\Windows\Forms\RadioButtonTests.cs (14)
1050
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
1051
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
1052
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
1053
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
1103
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), false };
1104
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), expectedIsHandleCreated };
1105
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), false };
1106
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), false };
1122
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
1206
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
1207
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
1208
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
1209
yield return new object[] { flatStyle, new
MouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
1225
control.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ScrollBarTests.cs (1)
2480
MouseEventArgs eventArgs =
new
(MouseButtons.Left, 0, 0, 0, delta);
System\Windows\Forms\SplitterTests.cs (6)
1957
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 2, 3, 4) };
1958
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
1959
yield return new object[] { new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
1999
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 2, 3, 4), false };
2000
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), true };
2001
yield return new object[] { new
MouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), false };
System\Windows\Forms\ToolStripControlHostTests.cs (3)
4085
c.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
4097
c.OnMouseMove(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
4100
c.OnMouseUp(new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ToolStripItemTests.cs (5)
7740
owner.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
7778
parent.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
7796
parent.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
14434
owner.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
14523
parent.OnMouseDown(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
System\Windows\Forms\ToolStripTests.cs (1)
5833
toolStrip.OnMouseMove(new
MouseEventArgs
(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
System\Windows\Forms\UpDownBaseTests.cs (9)
2004
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
2005
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
2006
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
2007
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
2008
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
2009
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
2010
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
2011
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
2012
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
TextBoxBaseTests.cs (9)
5587
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
5588
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
5589
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
5590
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
5591
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
5592
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
5593
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
5594
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
5595
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
TrackBarTests.cs (9)
2542
yield return new object[] { new
MouseEventArgs
(MouseButtons.None, 0, 0, 0, 0) };
2543
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 0, 0, 0, 0) };
2544
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 0, 0, 0, 0) };
2545
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 1, 0, 0, 0) };
2546
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 1, 0, 0, 0) };
2547
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 2, 0, 0, 0) };
2548
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 2, 0, 0, 0) };
2549
yield return new object[] { new
MouseEventArgs
(MouseButtons.Left, 3, 0, 0, 0) };
2550
yield return new object[] { new
MouseEventArgs
(MouseButtons.Right, 3, 0, 0, 0) };
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
155
new
(MouseButtons.Left, 1, 2, 3, 4),