393 references to ScrollEventType
System.Windows.Forms (78)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (9)
2582ScrollRowsByCount(rowsToScroll, rowsToScroll > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement); 2686ScrollEventType scrollEventType; 2748scrollEventType = change > 0 ? ScrollEventType.SmallIncrement : ScrollEventType.SmallDecrement; 2752scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingCol, DisplayedBandsInfo.FirstDisplayedScrollingCol) > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement; 2757scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol) > 1 ? ScrollEventType.LargeDecrement : ScrollEventType.SmallDecrement;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (34)
16554ScrollRowsByCount(-1, ScrollEventType.SmallDecrement); 16576ScrollRowsByCount(1, ScrollEventType.SmallIncrement); 18831private void OnScroll(ScrollEventType scrollEventType, int oldValue, int newValue, ScrollOrientation orientation) 26270ScrollRowsByCount(-rowsToScroll, rowsToScroll > 1 ? ScrollEventType.LargeDecrement : ScrollEventType.SmallDecrement); 26298ScrollRowsByCount(rowsToScroll, rowsToScroll > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement); 26306private unsafe void ScrollRows(int rowCount, int deltaY, ScrollEventType scrollEventType) 26378private void ScrollRowsByCount(int rows, ScrollEventType scrollEventType) 26381Debug.Assert((rows > 0 && (scrollEventType == ScrollEventType.SmallIncrement || scrollEventType == ScrollEventType.LargeIncrement)) 26382|| (rows < 0 && (scrollEventType == ScrollEventType.SmallDecrement || scrollEventType == ScrollEventType.LargeDecrement))); 26503ScrollEventType scrollEventType = ScrollEventType.EndScroll; 26510scrollEventType = rowCount > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement; 26516scrollEventType = rowCount < -1 ? ScrollEventType.LargeDecrement : ScrollEventType.SmallDecrement; 28391if (se.Type is ScrollEventType.SmallIncrement or ScrollEventType.SmallDecrement) 28393int dCols = (se.Type == ScrollEventType.SmallIncrement) ? 1 : -1; 28397else if (se.Type != ScrollEventType.EndScroll) 28417case ScrollEventType.SmallIncrement: 28424ScrollRowsByCount(1, ScrollEventType.SmallIncrement); 28431case ScrollEventType.SmallDecrement: 28435ScrollRowsByCount(-1, ScrollEventType.SmallDecrement); 28442case ScrollEventType.LargeIncrement: 28451case ScrollEventType.LargeDecrement: 28458case ScrollEventType.ThumbTrack: 28459case ScrollEventType.First: 28460case ScrollEventType.Last: 29865ScrollRowsByCount(normOffset, normOffset < 0 ? ScrollEventType.SmallDecrement : ScrollEventType.SmallIncrement);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3688if (se.Type != ScrollEventType.ThumbTrack && se.NewValue != se.OldValue)
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
1445ScrollEventType type = (ScrollEventType)m.WParamInternal.LOWORD; 1446if (type != ScrollEventType.EndScroll)
System\Windows\Forms\Scrolling\ScrollBar.cs (26)
546DoScroll(ScrollEventType.SmallDecrement); 552DoScroll(ScrollEventType.SmallIncrement); 559DoScroll(ScrollEventType.EndScroll); 629ScrollEventType type = (ScrollEventType)m.WParamInternal.LOWORD; 633private unsafe void DoScroll(ScrollEventType type) 640case ScrollEventType.First: 641type = ScrollEventType.Last; 644case ScrollEventType.Last: 645type = ScrollEventType.First; 648case ScrollEventType.SmallDecrement: 649type = ScrollEventType.SmallIncrement; 652case ScrollEventType.SmallIncrement: 653type = ScrollEventType.SmallDecrement; 656case ScrollEventType.LargeDecrement: 657type = ScrollEventType.LargeIncrement; 660case ScrollEventType.LargeIncrement: 661type = ScrollEventType.LargeDecrement; 674case ScrollEventType.First: 678case ScrollEventType.Last: 682case ScrollEventType.SmallDecrement: 686case ScrollEventType.SmallIncrement: 690case ScrollEventType.LargeDecrement: 694case ScrollEventType.LargeIncrement: 698case ScrollEventType.ThumbPosition: 699case ScrollEventType.ThumbTrack:
System\Windows\Forms\Scrolling\ScrollEventArgs.cs (5)
15public ScrollEventArgs(ScrollEventType type, int newValue) 25public ScrollEventArgs(ScrollEventType type, int newValue, ScrollOrientation scroll) 33public ScrollEventArgs(ScrollEventType type, int oldValue, int newValue) 40public ScrollEventArgs(ScrollEventType type, int oldValue, int newValue, ScrollOrientation scroll) 51public ScrollEventType Type { get; }
System.Windows.Forms.Tests (315)
System\Windows\Forms\ScrollableControlTests.cs (2)
1982foreach (ScrollEventType eventType in Enum.GetValues(typeof(ScrollEventType)))
System\Windows\Forms\ScrollBarTests.cs (273)
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) }; 2710yield return new object[] { msg, RightToLeft.No, 100, ScrollEventType.SmallIncrement, 91, ScrollEventType.SmallIncrement }; 2711yield return new object[] { msg, RightToLeft.No, 99, ScrollEventType.SmallIncrement, 91, ScrollEventType.SmallIncrement }; 2712yield return new object[] { msg, RightToLeft.No, 91, ScrollEventType.SmallIncrement, 91, ScrollEventType.SmallIncrement }; 2713yield return new object[] { msg, RightToLeft.No, 85, ScrollEventType.SmallIncrement, 86, ScrollEventType.SmallIncrement }; 2714yield return new object[] { msg, RightToLeft.No, 15, ScrollEventType.SmallIncrement, 16, ScrollEventType.SmallIncrement }; 2715yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.SmallIncrement, 11, ScrollEventType.SmallIncrement }; 2716yield return new object[] { msg, RightToLeft.No, 1, ScrollEventType.SmallIncrement, 2, ScrollEventType.SmallIncrement }; 2717yield return new object[] { msg, RightToLeft.No, 0, ScrollEventType.SmallIncrement, 1, ScrollEventType.SmallIncrement }; 2718yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.SmallDecrement, 91, ScrollEventType.SmallIncrement }; 2719yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.SmallDecrement, 91, ScrollEventType.SmallIncrement }; 2720yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.SmallDecrement, 91, ScrollEventType.SmallIncrement }; 2721yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.SmallDecrement, 86, ScrollEventType.SmallIncrement }; 2722yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.SmallDecrement, 16, ScrollEventType.SmallIncrement }; 2723yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.SmallDecrement, 11, ScrollEventType.SmallIncrement }; 2724yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.SmallDecrement, 2, ScrollEventType.SmallIncrement }; 2725yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.SmallDecrement, 1, ScrollEventType.SmallIncrement }; 2727yield return new object[] { msg, RightToLeft.No, 100, ScrollEventType.LargeIncrement, 91, ScrollEventType.LargeIncrement }; 2728yield return new object[] { msg, RightToLeft.No, 99, ScrollEventType.LargeIncrement, 91, ScrollEventType.LargeIncrement }; 2729yield return new object[] { msg, RightToLeft.No, 91, ScrollEventType.LargeIncrement, 91, ScrollEventType.LargeIncrement }; 2730yield return new object[] { msg, RightToLeft.No, 85, ScrollEventType.LargeIncrement, 91, ScrollEventType.LargeIncrement }; 2731yield return new object[] { msg, RightToLeft.No, 15, ScrollEventType.LargeIncrement, 25, ScrollEventType.LargeIncrement }; 2732yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.LargeIncrement, 20, ScrollEventType.LargeIncrement }; 2733yield return new object[] { msg, RightToLeft.No, 1, ScrollEventType.LargeIncrement, 11, ScrollEventType.LargeIncrement }; 2734yield return new object[] { msg, RightToLeft.No, 0, ScrollEventType.LargeIncrement, 10, ScrollEventType.LargeIncrement }; 2735yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement }; 2736yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement }; 2737yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement }; 2738yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.LargeDecrement, 91, ScrollEventType.LargeIncrement }; 2739yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.LargeDecrement, 25, ScrollEventType.LargeIncrement }; 2740yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.LargeDecrement, 20, ScrollEventType.LargeIncrement }; 2741yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.LargeDecrement, 11, ScrollEventType.LargeIncrement }; 2742yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.LargeDecrement, 10, ScrollEventType.LargeIncrement }; 2744yield return new object[] { msg, RightToLeft.No, 100, ScrollEventType.SmallDecrement, 99, ScrollEventType.SmallDecrement }; 2745yield return new object[] { msg, RightToLeft.No, 99, ScrollEventType.SmallDecrement, 98, ScrollEventType.SmallDecrement }; 2746yield return new object[] { msg, RightToLeft.No, 91, ScrollEventType.SmallDecrement, 90, ScrollEventType.SmallDecrement }; 2747yield return new object[] { msg, RightToLeft.No, 85, ScrollEventType.SmallDecrement, 84, ScrollEventType.SmallDecrement }; 2748yield return new object[] { msg, RightToLeft.No, 15, ScrollEventType.SmallDecrement, 14, ScrollEventType.SmallDecrement }; 2749yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.SmallDecrement, 9, ScrollEventType.SmallDecrement }; 2750yield return new object[] { msg, RightToLeft.No, 1, ScrollEventType.SmallDecrement, 0, ScrollEventType.SmallDecrement }; 2751yield return new object[] { msg, RightToLeft.No, 0, ScrollEventType.SmallDecrement, 0, ScrollEventType.SmallDecrement }; 2752yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.SmallIncrement, 99, ScrollEventType.SmallDecrement }; 2753yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.SmallIncrement, 98, ScrollEventType.SmallDecrement }; 2754yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.SmallIncrement, 90, ScrollEventType.SmallDecrement }; 2755yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.SmallIncrement, 84, ScrollEventType.SmallDecrement }; 2756yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.SmallIncrement, 14, ScrollEventType.SmallDecrement }; 2757yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.SmallIncrement, 9, ScrollEventType.SmallDecrement }; 2758yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.SmallIncrement, 0, ScrollEventType.SmallDecrement }; 2759yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.SmallIncrement, 0, ScrollEventType.SmallDecrement }; 2761yield return new object[] { msg, RightToLeft.No, 100, ScrollEventType.LargeDecrement, 90, ScrollEventType.LargeDecrement }; 2762yield return new object[] { msg, RightToLeft.No, 99, ScrollEventType.LargeDecrement, 89, ScrollEventType.LargeDecrement }; 2763yield return new object[] { msg, RightToLeft.No, 91, ScrollEventType.LargeDecrement, 81, ScrollEventType.LargeDecrement }; 2764yield return new object[] { msg, RightToLeft.No, 85, ScrollEventType.LargeDecrement, 75, ScrollEventType.LargeDecrement }; 2765yield return new object[] { msg, RightToLeft.No, 15, ScrollEventType.LargeDecrement, 5, ScrollEventType.LargeDecrement }; 2766yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.LargeDecrement, 0, ScrollEventType.LargeDecrement }; 2767yield return new object[] { msg, RightToLeft.No, 1, ScrollEventType.LargeDecrement, 0, ScrollEventType.LargeDecrement }; 2768yield return new object[] { msg, RightToLeft.No, 0, ScrollEventType.LargeDecrement, 0, ScrollEventType.LargeDecrement }; 2769yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.LargeIncrement, 90, ScrollEventType.LargeDecrement }; 2770yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.LargeIncrement, 89, ScrollEventType.LargeDecrement }; 2771yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.LargeIncrement, 81, ScrollEventType.LargeDecrement }; 2772yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.LargeIncrement, 75, ScrollEventType.LargeDecrement }; 2773yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.LargeIncrement, 5, ScrollEventType.LargeDecrement }; 2774yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.LargeIncrement, 0, ScrollEventType.LargeDecrement }; 2775yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.LargeIncrement, 0, ScrollEventType.LargeDecrement }; 2776yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.LargeIncrement, 0, ScrollEventType.LargeDecrement }; 2778yield return new object[] { msg, RightToLeft.No, 100, ScrollEventType.First, 0, ScrollEventType.First }; 2779yield return new object[] { msg, RightToLeft.No, 99, ScrollEventType.First, 0, ScrollEventType.First }; 2780yield return new object[] { msg, RightToLeft.No, 91, ScrollEventType.First, 0, ScrollEventType.First }; 2781yield return new object[] { msg, RightToLeft.No, 85, ScrollEventType.First, 0, ScrollEventType.First }; 2782yield return new object[] { msg, RightToLeft.No, 15, ScrollEventType.First, 0, ScrollEventType.First }; 2783yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.First, 0, ScrollEventType.First }; 2784yield return new object[] { msg, RightToLeft.No, 1, ScrollEventType.First, 0, ScrollEventType.First }; 2785yield return new object[] { msg, RightToLeft.No, 0, ScrollEventType.First, 0, ScrollEventType.First }; 2786yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.Last, 0, ScrollEventType.First }; 2787yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.Last, 0, ScrollEventType.First }; 2788yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.Last, 0, ScrollEventType.First }; 2789yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.Last, 0, ScrollEventType.First }; 2790yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.Last, 0, ScrollEventType.First }; 2791yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.Last, 0, ScrollEventType.First }; 2792yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.Last, 0, ScrollEventType.First }; 2793yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.Last, 0, ScrollEventType.First }; 2795yield return new object[] { msg, RightToLeft.No, 100, ScrollEventType.Last, 91, ScrollEventType.Last }; 2796yield return new object[] { msg, RightToLeft.No, 99, ScrollEventType.Last, 91, ScrollEventType.Last }; 2797yield return new object[] { msg, RightToLeft.No, 91, ScrollEventType.Last, 91, ScrollEventType.Last }; 2798yield return new object[] { msg, RightToLeft.No, 85, ScrollEventType.Last, 91, ScrollEventType.Last }; 2799yield return new object[] { msg, RightToLeft.No, 15, ScrollEventType.Last, 91, ScrollEventType.Last }; 2800yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.Last, 91, ScrollEventType.Last }; 2801yield return new object[] { msg, RightToLeft.No, 1, ScrollEventType.Last, 91, ScrollEventType.Last }; 2802yield return new object[] { msg, RightToLeft.No, 0, ScrollEventType.Last, 91, ScrollEventType.Last }; 2803yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.First, 91, ScrollEventType.Last }; 2804yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.First, 91, ScrollEventType.Last }; 2805yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.First, 91, ScrollEventType.Last }; 2806yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.First, 91, ScrollEventType.Last }; 2807yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.First, 91, ScrollEventType.Last }; 2808yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.First, 91, ScrollEventType.Last }; 2809yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.First, 91, ScrollEventType.Last }; 2810yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.First, 91, ScrollEventType.Last }; 2812yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.EndScroll, 10, ScrollEventType.EndScroll }; 2813yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.EndScroll, 10, ScrollEventType.EndScroll }; 2814yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.ThumbPosition, 10, ScrollEventType.ThumbPosition }; 2815yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.ThumbPosition, 10, ScrollEventType.ThumbPosition }; 2816yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.ThumbTrack, 10, ScrollEventType.ThumbTrack }; 2817yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.ThumbTrack, 10, ScrollEventType.ThumbTrack }; 2818yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.SmallDecrement - 1, 10, (ScrollEventType)ushort.MaxValue }; 2819yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.SmallDecrement - 1, 10, (ScrollEventType)ushort.MaxValue }; 2820yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.EndScroll + 1, 10, ScrollEventType.EndScroll + 1 }; 2821yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.EndScroll + 1, 10, ScrollEventType.EndScroll + 1 }; 2827public void ScrollBar_WndProc_InvokeScroll_Success(int msg, RightToLeft rightToLeft, int originalValue, ScrollEventType eventType, int expectedValue, ScrollEventType expectedEventType)
System\Windows\Forms\ScrollEventArgsTests.cs (21)
10[InlineData((ScrollEventType.EndScroll + 1), -2)] 11[InlineData(ScrollEventType.LargeIncrement, -1)] 12[InlineData(ScrollEventType.EndScroll, 0)] 13[InlineData(ScrollEventType.LargeIncrement, 1)] 14public void Ctor_ScrollEventType_Int(ScrollEventType type, int newValue) 24[InlineData((ScrollEventType.EndScroll + 1), -2, -2)] 25[InlineData(ScrollEventType.LargeIncrement, -1, -1)] 26[InlineData(ScrollEventType.EndScroll, 0, 0)] 27[InlineData(ScrollEventType.LargeIncrement, 1, 2)] 28public void Ctor_ScrollEventType_Int_Int(ScrollEventType type, int oldValue, int newValue) 38[InlineData((ScrollEventType.EndScroll + 1), -2, (ScrollOrientation.HorizontalScroll - 1))] 39[InlineData(ScrollEventType.LargeIncrement, -1, ScrollOrientation.HorizontalScroll)] 40[InlineData(ScrollEventType.EndScroll, 0, ScrollOrientation.VerticalScroll)] 41[InlineData(ScrollEventType.LargeIncrement, 1, ScrollOrientation.VerticalScroll)] 42public void Ctor_ScrollEventType_Int_ScrollOrientation(ScrollEventType type, int newValue, ScrollOrientation scroll) 52[InlineData((ScrollEventType.EndScroll + 1), -2, -2, (ScrollOrientation.HorizontalScroll - 1))] 53[InlineData(ScrollEventType.LargeIncrement, -1, -1, ScrollOrientation.HorizontalScroll)] 54[InlineData(ScrollEventType.EndScroll, 0, 0, ScrollOrientation.VerticalScroll)] 55[InlineData(ScrollEventType.LargeIncrement, 1, 2, ScrollOrientation.VerticalScroll)] 56public void Ctor_ScrollEventType_Int_Int_ScrollOrientation(ScrollEventType type, int oldValue, int newValue, ScrollOrientation scroll) 72ScrollEventArgs e = new(ScrollEventType.LargeIncrement, 2)
System\Windows\Forms\ToolStripDropDownTests.cs (2)
4721foreach (ScrollEventType eventType in Enum.GetValues(typeof(ScrollEventType)))
System\Windows\Forms\ToolStripTests.cs (17)
6570foreach (ScrollEventType eventType in Enum.GetValues(typeof(ScrollEventType))) 6612foreach (ScrollEventType eventType in Enum.GetValues(typeof(ScrollEventType))) 6616int expected = eventType != ScrollEventType.ThumbTrack ? 1 : 0; 6670foreach (ScrollEventType scrollEventType in Enum.GetValues(typeof(ScrollEventType))) 6672if (scrollEventType == ScrollEventType.ThumbTrack) 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) }; 6715foreach (ScrollEventType scrollEventType in Enum.GetValues(typeof(ScrollEventType))) 6717if (scrollEventType == ScrollEventType.ThumbTrack) 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 };