2 types derived from HandledMouseEventArgs
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnDividerDoubleClickEventArgs.cs (1)
6
public class DataGridViewColumnDividerDoubleClickEventArgs :
HandledMouseEventArgs
System\Windows\Forms\Controls\DataGridView\DataGridViewRowDividerDoubleClickEventArgs.cs (1)
6
public class DataGridViewRowDividerDoubleClickEventArgs :
HandledMouseEventArgs
52 instantiations of HandledMouseEventArgs
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (1)
11583
HandledMouseEventArgs e =
new
(
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
15987
HandledMouseEventArgs hme =
new
(
16007
HandledMouseEventArgs hme =
new
(
16037
HandledMouseEventArgs hme =
new
(
16057
HandledMouseEventArgs hme =
new
(
System.Windows.Forms.Tests (46)
System\Windows\Forms\ButtonBaseTests.cs (4)
6832
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
6833
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
6834
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
6835
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
System\Windows\Forms\ButtonTests.cs (12)
2647
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
2648
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
2649
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
2650
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
2699
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), false };
2700
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), true };
2701
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), false };
2702
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), false };
2803
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), 0 };
2804
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), expectedCallCount };
2805
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), 0 };
2806
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), 0 };
System\Windows\Forms\ControlTests.Handlers.cs (1)
3628
HandledMouseEventArgs eventArgs =
new
(MouseButtons.Left, 1, 2, 3, 4);
System\Windows\Forms\DataGridViewColumnDividerDoubleClickEventArgsTests.cs (4)
11
yield return new object[] { -1, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4, true) };
12
yield return new object[] { 0, new
HandledMouseEventArgs
((MouseButtons)1, 0, 0, 0, 0, true) };
13
yield return new object[] { 1, new
HandledMouseEventArgs
((MouseButtons)3, -1, -1, -1, -2, false) };
34
Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewColumnDividerDoubleClickEventArgs(-2, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4, true)));
System\Windows\Forms\DataGridViewRowDividerDoubleClickEventArgsTests.cs (4)
11
yield return new object[] { -1, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4, true) };
12
yield return new object[] { 0, new
HandledMouseEventArgs
((MouseButtons)1, 0, 0, 0, 0, true) };
13
yield return new object[] { 1, new
HandledMouseEventArgs
((MouseButtons)3, -1, -1, -1, -2, false) };
34
Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewRowDividerDoubleClickEventArgs(-2, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4, true)));
System\Windows\Forms\DataGridViewTests.cs (2)
3795
DataGridViewColumnDividerDoubleClickEventArgs args = new(0,
new
(MouseButtons.Left, 2, 0, 0, 0));
3800
args = new(1,
new
(MouseButtons.Left, 2, 0, 0, 0));
System\Windows\Forms\HandledMouseEventArgsTests.cs (2)
17
HandledMouseEventArgs e =
new
(button, clicks, x, y, delta);
33
HandledMouseEventArgs e =
new
(button, clicks, x, y, delta, handled);
System\Windows\Forms\RadioButtonTests.cs (12)
1052
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
1053
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
1054
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
1055
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
1105
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.None, 1, 2, 3, 4), false };
1106
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), expectedIsHandleCreated };
1107
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4), false };
1108
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4), false };
1208
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.None, 1, 2, 3, 4) };
1209
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
1210
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Middle, 1, 2, 3, 4) };
1211
yield return new object[] { flatStyle, new
HandledMouseEventArgs
(MouseButtons.Right, 1, 2, 3, 4) };
System\Windows\Forms\ScrollBarTests.cs (1)
2211
HandledMouseEventArgs eventArgs =
new
(MouseButtons.Left, 1, 2, 3, 4);
System\Windows\Forms\SplitterTests.cs (2)
1958
yield return new object[] { new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4) };
2000
yield return new object[] { new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4), true };
System\Windows\Forms\UpDownBaseTests.cs (1)
2200
HandledMouseEventArgs eventArgs =
new
(MouseButtons.Left, 1, 2, 3, 4, handled);
TrackBarTests.cs (1)
2580
HandledMouseEventArgs eventArgs =
new
(MouseButtons.Left, 1, 2, 3, 4, handled);
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
156
new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4)
23 references to HandledMouseEventArgs
System.Windows.Forms (15)
System\Windows\Forms\Control.cs (1)
11583
HandledMouseEventArgs
e = new(
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
15987
HandledMouseEventArgs
hme = new(
16007
HandledMouseEventArgs
hme = new(
16037
HandledMouseEventArgs
hme = new(
16057
HandledMouseEventArgs
hme = new(
16437
HandledMouseEventArgs
? hme = e as
HandledMouseEventArgs
;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnDividerDoubleClickEventArgs.cs (1)
8
public DataGridViewColumnDividerDoubleClickEventArgs(int columnIndex,
HandledMouseEventArgs
? e)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowDividerDoubleClickEventArgs.cs (1)
8
public DataGridViewRowDividerDoubleClickEventArgs(int rowIndex,
HandledMouseEventArgs
e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3108
if (e is
HandledMouseEventArgs
handledArgs)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
915
if (e is
HandledMouseEventArgs
hme)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
723
if (e is
HandledMouseEventArgs
hme)
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
625
if (e is
HandledMouseEventArgs
args)
641
if (e is
HandledMouseEventArgs
args)
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
562
if (e is
HandledMouseEventArgs
mouseEventArgs)
System.Windows.Forms.Tests (8)
System\Windows\Forms\ControlTests.Handlers.cs (1)
3628
HandledMouseEventArgs
eventArgs = new(MouseButtons.Left, 1, 2, 3, 4);
System\Windows\Forms\DataGridViewColumnDividerDoubleClickEventArgsTests.cs (1)
18
public void DataGridViewColumnDividerDoubleClickEventArgs_Ctor_Int_HandledMouseEventArgs(int columnIndex,
HandledMouseEventArgs
mouseE)
System\Windows\Forms\DataGridViewRowDividerDoubleClickEventArgsTests.cs (1)
18
public void DataGridViewRowDividerDoubleClickEventArgs_Ctor_Int_HandledMouseEventArgs(int rowIndex,
HandledMouseEventArgs
mouseE)
System\Windows\Forms\HandledMouseEventArgsTests.cs (2)
17
HandledMouseEventArgs
e = new(button, clicks, x, y, delta);
33
HandledMouseEventArgs
e = new(button, clicks, x, y, delta, handled);
System\Windows\Forms\ScrollBarTests.cs (1)
2211
HandledMouseEventArgs
eventArgs = new(MouseButtons.Left, 1, 2, 3, 4);
System\Windows\Forms\UpDownBaseTests.cs (1)
2200
HandledMouseEventArgs
eventArgs = new(MouseButtons.Left, 1, 2, 3, 4, handled);
TrackBarTests.cs (1)
2580
HandledMouseEventArgs
eventArgs = new(MouseButtons.Left, 1, 2, 3, 4, handled);