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