87 instantiations of ScrollEventArgs
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
18852ScrollEventArgs se = new(scrollEventType, oldValue, newValue, orientation);
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
1448ScrollEventArgs se = new(type, oldValue, value, scrollOrientation);
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
720ScrollEventArgs se = new(type, oldValue, newValue, _scrollOrientation);
System.Windows.Forms.Tests (84)
System\Windows\Forms\ScrollableControlTests.cs (2)
1986yield return new object[] { new ScrollEventArgs(eventType, 1, 1, orientation) }; 1987yield return new object[] { new ScrollEventArgs(eventType, 1, 2, orientation) };
System\Windows\Forms\ScrollBarTests.cs (59)
2242new(ScrollEventType.SmallDecrement, 10, 9), 2243new(ScrollEventType.EndScroll, 9, 9), 2251new(ScrollEventType.SmallDecrement, 10, 9), 2252new(ScrollEventType.EndScroll, 9, 9), 2260new(ScrollEventType.SmallDecrement, 10, 9), 2261new(ScrollEventType.SmallDecrement, 9, 8), 2262new(ScrollEventType.EndScroll, 8, 8), 2270new(ScrollEventType.SmallDecrement, 1, 0), 2271new(ScrollEventType.EndScroll, 0, 0), 2279new(ScrollEventType.SmallDecrement, 1, 0), 2280new(ScrollEventType.SmallDecrement, 0, 0), 2281new(ScrollEventType.EndScroll, 0, 0), 2289new(ScrollEventType.SmallDecrement, 100, 99), 2290new(ScrollEventType.SmallDecrement, 99, 98), 2291new(ScrollEventType.EndScroll, 98, 98), 2300new(ScrollEventType.SmallDecrement, 10, 9), 2301new(ScrollEventType.EndScroll, 9, 9), 2309new(ScrollEventType.SmallDecrement, 10, 9), 2310new(ScrollEventType.EndScroll, 9, 9), 2318new(ScrollEventType.SmallDecrement, 10, 9), 2319new(ScrollEventType.SmallDecrement, 9, 8), 2320new(ScrollEventType.EndScroll, 8, 8), 2328new(ScrollEventType.SmallDecrement, 1, 0), 2329new(ScrollEventType.EndScroll, 0, 0), 2337new(ScrollEventType.SmallDecrement, 1, 0), 2338new(ScrollEventType.SmallDecrement, 0, 0), 2339new(ScrollEventType.EndScroll, 0, 0), 2347new(ScrollEventType.SmallDecrement, 100, 99), 2348new(ScrollEventType.SmallDecrement, 99, 98), 2349new(ScrollEventType.EndScroll, 98, 98), 2359new(ScrollEventType.SmallIncrement, 10, 11), 2360new(ScrollEventType.EndScroll, 11, 11), 2368new(ScrollEventType.SmallIncrement, 10, 11), 2369new(ScrollEventType.EndScroll, 11, 11), 2377new(ScrollEventType.SmallIncrement, 10, 11), 2378new(ScrollEventType.SmallIncrement, 11, 12), 2379new(ScrollEventType.EndScroll, 12, 12), 2387new(ScrollEventType.SmallIncrement, 90, 91), 2388new(ScrollEventType.EndScroll, 91, 91), 2396new(ScrollEventType.SmallIncrement, 99, 91), 2397new(ScrollEventType.EndScroll, 91, 91), 2405new(ScrollEventType.SmallIncrement, 99, 91), 2406new(ScrollEventType.SmallIncrement, 91, 91), 2407new(ScrollEventType.EndScroll, 91, 91), 2416new(ScrollEventType.SmallIncrement, 10, 11), 2417new(ScrollEventType.EndScroll, 11, 11), 2425new(ScrollEventType.SmallIncrement, 10, 11), 2426new(ScrollEventType.EndScroll, 11, 11), 2434new(ScrollEventType.SmallIncrement, 10, 11), 2435new(ScrollEventType.SmallIncrement, 11, 12), 2436new(ScrollEventType.EndScroll, 12, 12), 2444new(ScrollEventType.SmallIncrement, 90, 91), 2445new(ScrollEventType.EndScroll, 91, 91), 2453new(ScrollEventType.SmallIncrement, 99, 91), 2454new(ScrollEventType.EndScroll, 91, 91), 2462new(ScrollEventType.SmallIncrement, 99, 91), 2463new(ScrollEventType.SmallIncrement, 91, 91), 2464new(ScrollEventType.EndScroll, 91, 91), 2523yield return new object[] { new ScrollEventArgs(ScrollEventType.SmallDecrement, 2) };
System\Windows\Forms\ScrollEventArgsTests.cs (5)
16ScrollEventArgs e = new(type, newValue); 30ScrollEventArgs e = new(type, oldValue, newValue); 44ScrollEventArgs e = new(type, newValue, scroll); 58ScrollEventArgs e = new(type, oldValue, newValue, scroll); 72ScrollEventArgs e = new(ScrollEventType.LargeIncrement, 2)
System\Windows\Forms\ToolStripDropDownTests.cs (2)
4725yield return new object[] { new ScrollEventArgs(eventType, 1, 1, orientation) }; 4726yield return new object[] { new ScrollEventArgs(eventType, 1, 2, orientation) };
System\Windows\Forms\ToolStripTests.cs (16)
6574yield return new object[] { new ScrollEventArgs(eventType, 1, 1, orientation) }; 6575yield return new object[] { new ScrollEventArgs(eventType, 1, 2, orientation) }; 6617yield return new object[] { new ScrollEventArgs(eventType, 1, 1, orientation), 0 }; 6618yield return new object[] { new ScrollEventArgs(eventType, 1, 2, orientation), expected }; 6677yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 200), new Point(x, 101), new Point(0, 100) }; 6678yield return new object[] { new ScrollEventArgs(scrollEventType, 200, 100), new Point(x, -99), new Point(0, -100) }; 6679yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 100), new Point(x, 1), new Point(0, 0) }; 6682yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 100, 200), new Point(x, 1), new Point(0, 0) }; 6683yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 200, 100), new Point(x, 1), new Point(0, 0) }; 6684yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 0, 0), new Point(x, 1), new Point(0, 0) }; 6722yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 200), new Point(x, 101), new Point(0, 100), 1 }; 6723yield return new object[] { new ScrollEventArgs(scrollEventType, 200, 100), new Point(x, -99), new Point(0, -100), 1 }; 6724yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 100), new Point(x, 1), new Point(0, 0), 0 }; 6727yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 100, 200), new Point(x, 1), new Point(0, 0), 0 }; 6728yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 200, 100), new Point(x, 1), new Point(0, 0), 0 }; 6729yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 0, 0), new Point(x, 1), new Point(0, 0), 0 };
65 references to ScrollEventArgs
DesignSurface (1)
MainForm.MyScrollableControl.cs (1)
25protected override void OnScroll(ScrollEventArgs se)
System.Windows.Forms (13)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
18852ScrollEventArgs se = new(scrollEventType, oldValue, newValue, orientation); 18910protected virtual void OnScroll(ScrollEventArgs e) => 28403private void DataGridViewHScrolled(object? sender, ScrollEventArgs se) 28422private void DataGridViewVScrolled(object? sender, ScrollEventArgs se)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3613private void OnScroll(object? sender, ScrollEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3685protected override void OnScroll(ScrollEventArgs se)
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
930protected virtual void OnScroll(ScrollEventArgs se) 1448ScrollEventArgs se = new(type, oldValue, value, scrollOrientation);
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
523protected virtual void OnScroll(ScrollEventArgs se) 720ScrollEventArgs se = new(type, oldValue, newValue, _scrollOrientation);
System\Windows\Forms\Scrolling\ScrollEventArgs.cs (2)
13/// Initializes a new instance of the <see cref="ScrollEventArgs"/> class. 23/// Initializes a new instance of the <see cref="ScrollEventArgs"/> class.
System\Windows\Forms\Scrolling\ScrollEventHandler.cs (1)
10public delegate void ScrollEventHandler(object? sender, ScrollEventArgs e);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2053private void OnScroll(object sender, ScrollEventArgs se)
System.Windows.Forms.Tests (48)
System\Windows\Forms\ScrollableControlTests.cs (3)
1994public void ScrollableControl_OnScroll_Invoke_CallsScroll(ScrollEventArgs eventArgs) 2020public void ScrollableControl_OnScroll_InvokeWithHandle_CallsScroll(ScrollEventArgs eventArgs) 2654public new void OnScroll(ScrollEventArgs se) => base.OnScroll(se);
System\Windows\Forms\ScrollBarTests.cs (33)
2229yield return new object[] { RightToLeft.No, 10, -119, new List<ScrollEventArgs>(), 10 }; 2230yield return new object[] { RightToLeft.No, 10, 0, new List<ScrollEventArgs>(), 10 }; 2231yield return new object[] { RightToLeft.No, 10, 119, new List<ScrollEventArgs>(), 10 }; 2232yield return new object[] { RightToLeft.Yes, 10, -119, new List<ScrollEventArgs>(), 10 }; 2233yield return new object[] { RightToLeft.Yes, 10, 0, new List<ScrollEventArgs>(), 10 }; 2234yield return new object[] { RightToLeft.Yes, 10, 119, new List<ScrollEventArgs>(), 10 }; 2240new List<ScrollEventArgs> 2249new List<ScrollEventArgs> 2258new List<ScrollEventArgs> 2268new List<ScrollEventArgs> 2277new List<ScrollEventArgs> 2287new List<ScrollEventArgs> 2298new List<ScrollEventArgs> 2307new List<ScrollEventArgs> 2316new List<ScrollEventArgs> 2326new List<ScrollEventArgs> 2335new List<ScrollEventArgs> 2345new List<ScrollEventArgs> 2357new List<ScrollEventArgs> 2366new List<ScrollEventArgs> 2375new List<ScrollEventArgs> 2385new List<ScrollEventArgs> 2394new List<ScrollEventArgs> 2403new List<ScrollEventArgs> 2414new List<ScrollEventArgs> 2423new List<ScrollEventArgs> 2432new List<ScrollEventArgs> 2442new List<ScrollEventArgs> 2451new List<ScrollEventArgs> 2460new List<ScrollEventArgs> 2471public void ScrollBar_OnMouseWheel_InvokeWithScroll_CallsScroll(RightToLeft rightToLeft, int originalValue, int delta, IList<ScrollEventArgs> expected, int expectedValue) 2528public void ScrollBar_OnScroll_Invoke_CallsScroll(ScrollEventArgs eventArgs) 3242public new void OnScroll(ScrollEventArgs se) => base.OnScroll(se);
System\Windows\Forms\ScrollEventArgsTests.cs (5)
16ScrollEventArgs e = new(type, newValue); 30ScrollEventArgs e = new(type, oldValue, newValue); 44ScrollEventArgs e = new(type, newValue, scroll); 58ScrollEventArgs e = new(type, oldValue, newValue, scroll); 72ScrollEventArgs e = new(ScrollEventType.LargeIncrement, 2)
System\Windows\Forms\ToolStripDropDownTests.cs (2)
4733public void ToolStripDropDown_OnScroll_Invoke_CallsHandler(ScrollEventArgs eventArgs) 5222public new void OnScroll(ScrollEventArgs se) => base.OnScroll(se);
System\Windows\Forms\ToolStripTests.cs (5)
6582public void ToolStrip_OnScroll_Invoke_CallsHandler(ScrollEventArgs eventArgs) 6625public void ToolStrip_OnScroll_InvokeWithHandle_CallsHandler(ScrollEventArgs eventArgs, int expectedInvalidatedCallCount) 6689public void ToolStrip_OnScroll_InvokeWithItems_Success(ScrollEventArgs eventArgs, Point expectedItem1Location, Point expectedItem2Location) 6734public void ToolStrip_OnScroll_InvokeWithItemsWithHandle_Success(ScrollEventArgs eventArgs, Point expectedItem1Location, Point expectedItem2Location, int expectedInvalidatedCallCount) 7670public new void OnScroll(ScrollEventArgs se) => base.OnScroll(se);
WinFormsControlsTest (2)
ScrollBars.cs (2)
31private void hScrollBar_Scroll(object sender, ScrollEventArgs e) => SetValueLabels(); 33private void vScrollBar_Scroll(object sender, ScrollEventArgs e) => SetValueLabels();