64 references to SmallIncrement
System.Windows.Forms (16)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
2582ScrollRowsByCount(rowsToScroll, rowsToScroll > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement); 2748scrollEventType = change > 0 ? ScrollEventType.SmallIncrement : ScrollEventType.SmallDecrement; 2752scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingCol, DisplayedBandsInfo.FirstDisplayedScrollingCol) > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (9)
16576ScrollRowsByCount(1, ScrollEventType.SmallIncrement); 26298ScrollRowsByCount(rowsToScroll, rowsToScroll > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement); 26381Debug.Assert((rows > 0 && (scrollEventType == ScrollEventType.SmallIncrement || scrollEventType == ScrollEventType.LargeIncrement)) 26510scrollEventType = rowCount > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement; 28391if (se.Type is ScrollEventType.SmallIncrement or ScrollEventType.SmallDecrement) 28393int dCols = (se.Type == ScrollEventType.SmallIncrement) ? 1 : -1; 28417case ScrollEventType.SmallIncrement: 28424ScrollRowsByCount(1, ScrollEventType.SmallIncrement); 29865ScrollRowsByCount(normOffset, normOffset < 0 ? ScrollEventType.SmallDecrement : ScrollEventType.SmallIncrement);
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
552DoScroll(ScrollEventType.SmallIncrement); 649type = ScrollEventType.SmallIncrement; 652case ScrollEventType.SmallIncrement: 686case ScrollEventType.SmallIncrement:
System.Windows.Forms.Tests (48)
System\Windows\Forms\ScrollBarTests.cs (48)
2359new(ScrollEventType.SmallIncrement, 10, 11), 2368new(ScrollEventType.SmallIncrement, 10, 11), 2377new(ScrollEventType.SmallIncrement, 10, 11), 2378new(ScrollEventType.SmallIncrement, 11, 12), 2387new(ScrollEventType.SmallIncrement, 90, 91), 2396new(ScrollEventType.SmallIncrement, 99, 91), 2405new(ScrollEventType.SmallIncrement, 99, 91), 2406new(ScrollEventType.SmallIncrement, 91, 91), 2416new(ScrollEventType.SmallIncrement, 10, 11), 2425new(ScrollEventType.SmallIncrement, 10, 11), 2434new(ScrollEventType.SmallIncrement, 10, 11), 2435new(ScrollEventType.SmallIncrement, 11, 12), 2444new(ScrollEventType.SmallIncrement, 90, 91), 2453new(ScrollEventType.SmallIncrement, 99, 91), 2462new(ScrollEventType.SmallIncrement, 99, 91), 2463new(ScrollEventType.SmallIncrement, 91, 91), 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 }; 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 };