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