67 references to SmallDecrement
System.Windows.Forms (14)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2748scrollEventType = change > 0 ? ScrollEventType.SmallIncrement : ScrollEventType.SmallDecrement; 2757scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol) > 1 ? ScrollEventType.LargeDecrement : ScrollEventType.SmallDecrement;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (8)
16573ScrollRowsByCount(-1, ScrollEventType.SmallDecrement); 26290ScrollRowsByCount(-rowsToScroll, rowsToScroll > 1 ? ScrollEventType.LargeDecrement : ScrollEventType.SmallDecrement); 26402|| (rows < 0 && (scrollEventType == ScrollEventType.SmallDecrement || scrollEventType == ScrollEventType.LargeDecrement))); 26536scrollEventType = rowCount < -1 ? ScrollEventType.LargeDecrement : ScrollEventType.SmallDecrement; 28410if (se.Type is ScrollEventType.SmallIncrement or ScrollEventType.SmallDecrement) 28450case ScrollEventType.SmallDecrement: 28454ScrollRowsByCount(-1, ScrollEventType.SmallDecrement); 29884ScrollRowsByCount(normOffset, normOffset < 0 ? ScrollEventType.SmallDecrement : ScrollEventType.SmallIncrement);
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
546DoScroll(ScrollEventType.SmallDecrement); 648case ScrollEventType.SmallDecrement: 653type = ScrollEventType.SmallDecrement; 682case ScrollEventType.SmallDecrement:
System.Windows.Forms.Tests (53)
System\Windows\Forms\ScrollBarTests.cs (53)
2242new(ScrollEventType.SmallDecrement, 10, 9), 2251new(ScrollEventType.SmallDecrement, 10, 9), 2260new(ScrollEventType.SmallDecrement, 10, 9), 2261new(ScrollEventType.SmallDecrement, 9, 8), 2270new(ScrollEventType.SmallDecrement, 1, 0), 2279new(ScrollEventType.SmallDecrement, 1, 0), 2280new(ScrollEventType.SmallDecrement, 0, 0), 2289new(ScrollEventType.SmallDecrement, 100, 99), 2290new(ScrollEventType.SmallDecrement, 99, 98), 2300new(ScrollEventType.SmallDecrement, 10, 9), 2309new(ScrollEventType.SmallDecrement, 10, 9), 2318new(ScrollEventType.SmallDecrement, 10, 9), 2319new(ScrollEventType.SmallDecrement, 9, 8), 2328new(ScrollEventType.SmallDecrement, 1, 0), 2337new(ScrollEventType.SmallDecrement, 1, 0), 2338new(ScrollEventType.SmallDecrement, 0, 0), 2347new(ScrollEventType.SmallDecrement, 100, 99), 2348new(ScrollEventType.SmallDecrement, 99, 98), 2523yield return new object[] { new ScrollEventArgs(ScrollEventType.SmallDecrement, 2) }; 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 }; 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 }; 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 };