67 references to SmallDecrement
System.Windows.Forms (14)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2748
scrollEventType = change > 0 ? ScrollEventType.SmallIncrement : ScrollEventType.
SmallDecrement
;
2757
scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol) > 1 ? ScrollEventType.LargeDecrement : ScrollEventType.
SmallDecrement
;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (8)
16554
ScrollRowsByCount(-1, ScrollEventType.
SmallDecrement
);
26270
ScrollRowsByCount(-rowsToScroll, rowsToScroll > 1 ? ScrollEventType.LargeDecrement : ScrollEventType.
SmallDecrement
);
26382
|| (rows < 0 && (scrollEventType == ScrollEventType.
SmallDecrement
|| scrollEventType == ScrollEventType.LargeDecrement)));
26516
scrollEventType = rowCount < -1 ? ScrollEventType.LargeDecrement : ScrollEventType.
SmallDecrement
;
28391
if (se.Type is ScrollEventType.SmallIncrement or ScrollEventType.
SmallDecrement
)
28431
case ScrollEventType.
SmallDecrement
:
28435
ScrollRowsByCount(-1, ScrollEventType.
SmallDecrement
);
29865
ScrollRowsByCount(normOffset, normOffset < 0 ? ScrollEventType.
SmallDecrement
: ScrollEventType.SmallIncrement);
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
546
DoScroll(ScrollEventType.
SmallDecrement
);
648
case ScrollEventType.
SmallDecrement
:
653
type = ScrollEventType.
SmallDecrement
;
682
case ScrollEventType.
SmallDecrement
:
System.Windows.Forms.Tests (53)
System\Windows\Forms\ScrollBarTests.cs (53)
2242
new(ScrollEventType.
SmallDecrement
, 10, 9),
2251
new(ScrollEventType.
SmallDecrement
, 10, 9),
2260
new(ScrollEventType.
SmallDecrement
, 10, 9),
2261
new(ScrollEventType.
SmallDecrement
, 9, 8),
2270
new(ScrollEventType.
SmallDecrement
, 1, 0),
2279
new(ScrollEventType.
SmallDecrement
, 1, 0),
2280
new(ScrollEventType.
SmallDecrement
, 0, 0),
2289
new(ScrollEventType.
SmallDecrement
, 100, 99),
2290
new(ScrollEventType.
SmallDecrement
, 99, 98),
2300
new(ScrollEventType.
SmallDecrement
, 10, 9),
2309
new(ScrollEventType.
SmallDecrement
, 10, 9),
2318
new(ScrollEventType.
SmallDecrement
, 10, 9),
2319
new(ScrollEventType.
SmallDecrement
, 9, 8),
2328
new(ScrollEventType.
SmallDecrement
, 1, 0),
2337
new(ScrollEventType.
SmallDecrement
, 1, 0),
2338
new(ScrollEventType.
SmallDecrement
, 0, 0),
2347
new(ScrollEventType.
SmallDecrement
, 100, 99),
2348
new(ScrollEventType.
SmallDecrement
, 99, 98),
2523
yield return new object[] { new ScrollEventArgs(ScrollEventType.
SmallDecrement
, 2) };
2718
yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.
SmallDecrement
, 91, ScrollEventType.SmallIncrement };
2719
yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.
SmallDecrement
, 91, ScrollEventType.SmallIncrement };
2720
yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.
SmallDecrement
, 91, ScrollEventType.SmallIncrement };
2721
yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.
SmallDecrement
, 86, ScrollEventType.SmallIncrement };
2722
yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.
SmallDecrement
, 16, ScrollEventType.SmallIncrement };
2723
yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.
SmallDecrement
, 11, ScrollEventType.SmallIncrement };
2724
yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.
SmallDecrement
, 2, ScrollEventType.SmallIncrement };
2725
yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.
SmallDecrement
, 1, ScrollEventType.SmallIncrement };
2744
yield return new object[] { msg, RightToLeft.No, 100, ScrollEventType.
SmallDecrement
, 99, ScrollEventType.
SmallDecrement
};
2745
yield return new object[] { msg, RightToLeft.No, 99, ScrollEventType.
SmallDecrement
, 98, ScrollEventType.
SmallDecrement
};
2746
yield return new object[] { msg, RightToLeft.No, 91, ScrollEventType.
SmallDecrement
, 90, ScrollEventType.
SmallDecrement
};
2747
yield return new object[] { msg, RightToLeft.No, 85, ScrollEventType.
SmallDecrement
, 84, ScrollEventType.
SmallDecrement
};
2748
yield return new object[] { msg, RightToLeft.No, 15, ScrollEventType.
SmallDecrement
, 14, ScrollEventType.
SmallDecrement
};
2749
yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.
SmallDecrement
, 9, ScrollEventType.
SmallDecrement
};
2750
yield return new object[] { msg, RightToLeft.No, 1, ScrollEventType.
SmallDecrement
, 0, ScrollEventType.
SmallDecrement
};
2751
yield return new object[] { msg, RightToLeft.No, 0, ScrollEventType.
SmallDecrement
, 0, ScrollEventType.
SmallDecrement
};
2752
yield return new object[] { msg, RightToLeft.Yes, 100, ScrollEventType.SmallIncrement, 99, ScrollEventType.
SmallDecrement
};
2753
yield return new object[] { msg, RightToLeft.Yes, 99, ScrollEventType.SmallIncrement, 98, ScrollEventType.
SmallDecrement
};
2754
yield return new object[] { msg, RightToLeft.Yes, 91, ScrollEventType.SmallIncrement, 90, ScrollEventType.
SmallDecrement
};
2755
yield return new object[] { msg, RightToLeft.Yes, 85, ScrollEventType.SmallIncrement, 84, ScrollEventType.
SmallDecrement
};
2756
yield return new object[] { msg, RightToLeft.Yes, 15, ScrollEventType.SmallIncrement, 14, ScrollEventType.
SmallDecrement
};
2757
yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.SmallIncrement, 9, ScrollEventType.
SmallDecrement
};
2758
yield return new object[] { msg, RightToLeft.Yes, 1, ScrollEventType.SmallIncrement, 0, ScrollEventType.
SmallDecrement
};
2759
yield return new object[] { msg, RightToLeft.Yes, 0, ScrollEventType.SmallIncrement, 0, ScrollEventType.
SmallDecrement
};
2818
yield return new object[] { msg, RightToLeft.No, 10, ScrollEventType.
SmallDecrement
- 1, 10, (ScrollEventType)ushort.MaxValue };
2819
yield return new object[] { msg, RightToLeft.Yes, 10, ScrollEventType.
SmallDecrement
- 1, 10, (ScrollEventType)ushort.MaxValue };