85 references to ScrollEventType
System.Windows.Forms (85)
winforms\Managed\System\WinForms\DataGrid.cs (6)
3613
if (se.Type ==
ScrollEventType
.SmallIncrement ||
3614
se.Type ==
ScrollEventType
.SmallDecrement)
3616
int dCols = (se.Type ==
ScrollEventType
.SmallIncrement)? 1:-1;
3617
if (se.Type ==
ScrollEventType
.SmallDecrement && this.negOffset == 0) {
3625
if (se.Type ==
ScrollEventType
.SmallIncrement && this.negOffset == 0) {
3635
else if (se.Type !=
ScrollEventType
.EndScroll)
winforms\Managed\System\WinForms\DataGridView.cs (9)
3225
ScrollRowsByCount(rowsToScroll, rowsToScroll > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement);
3398
ScrollEventType
scrollEventType;
3456
scrollEventType = change > 0 ?
ScrollEventType
.SmallIncrement :
ScrollEventType
.SmallDecrement;
3460
scrollEventType = this.Columns.GetColumnCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingCol, this.displayedBandsInfo.FirstDisplayedScrollingCol) > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement;
3465
scrollEventType = this.Columns.GetColumnCount(DataGridViewElementStates.Visible, this.displayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol) > 1 ?
ScrollEventType
.LargeDecrement :
ScrollEventType
.SmallDecrement;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (34)
17005
ScrollRowsByCount(-1,
ScrollEventType
.SmallDecrement);
17026
ScrollRowsByCount(1,
ScrollEventType
.SmallIncrement);
19383
private void OnScroll(
ScrollEventType
scrollEventType, int oldValue, int newValue, ScrollOrientation orientation)
26387
ScrollRowsByCount(-rowsToScroll, rowsToScroll > 1 ?
ScrollEventType
.LargeDecrement :
ScrollEventType
.SmallDecrement);
26414
ScrollRowsByCount(rowsToScroll, rowsToScroll > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement);
26421
private void ScrollRows(int rowCount, int deltaY,
ScrollEventType
scrollEventType)
26491
private void ScrollRowsByCount(int rows,
ScrollEventType
scrollEventType)
26494
Debug.Assert((rows > 0 && (scrollEventType ==
ScrollEventType
.SmallIncrement || scrollEventType ==
ScrollEventType
.LargeIncrement)) ||
26495
(rows < 0 && (scrollEventType ==
ScrollEventType
.SmallDecrement || scrollEventType ==
ScrollEventType
.LargeDecrement)));
26611
ScrollEventType
scrollEventType =
ScrollEventType
.EndScroll;
26618
scrollEventType = rowCount > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement;
26624
scrollEventType = rowCount < -1 ?
ScrollEventType
.LargeDecrement :
ScrollEventType
.SmallDecrement;
28433
if (se.Type ==
ScrollEventType
.SmallIncrement ||
28434
se.Type ==
ScrollEventType
.SmallDecrement)
28436
int dCols = (se.Type ==
ScrollEventType
.SmallIncrement) ? 1 : -1;
28440
else if (se.Type !=
ScrollEventType
.EndScroll)
28489
case
ScrollEventType
.SmallIncrement:
28496
ScrollRowsByCount(1,
ScrollEventType
.SmallIncrement);
28501
case
ScrollEventType
.SmallDecrement:
28505
ScrollRowsByCount(-1,
ScrollEventType
.SmallDecrement);
28510
case
ScrollEventType
.LargeIncrement:
28518
case
ScrollEventType
.LargeDecrement:
28524
case
ScrollEventType
.ThumbTrack:
28525
case
ScrollEventType
.First:
28526
case
ScrollEventType
.Last:
29764
ScrollRowsByCount(normOffset, normOffset < 0 ?
ScrollEventType
.SmallDecrement :
ScrollEventType
.SmallIncrement);
winforms\Managed\System\WinForms\ScrollableControl.cs (3)
1457
ScrollEventType
type = (
ScrollEventType
)NativeMethods.Util.LOWORD(m.WParam);
1458
if (type !=
ScrollEventType
.EndScroll) {
winforms\Managed\System\WinForms\ScrollBar.cs (26)
733
DoScroll(
ScrollEventType
.SmallDecrement);
738
DoScroll(
ScrollEventType
.SmallIncrement);
744
DoScroll(
ScrollEventType
.EndScroll);
819
ScrollEventType
type = (
ScrollEventType
)NativeMethods.Util.LOWORD(m.WParam);
827
private void DoScroll(
ScrollEventType
type) {
833
case
ScrollEventType
.First:
834
type =
ScrollEventType
.Last;
837
case
ScrollEventType
.Last:
838
type =
ScrollEventType
.First;
841
case
ScrollEventType
.SmallDecrement:
842
type =
ScrollEventType
.SmallIncrement;
845
case
ScrollEventType
.SmallIncrement:
846
type =
ScrollEventType
.SmallDecrement;
849
case
ScrollEventType
.LargeDecrement:
850
type =
ScrollEventType
.LargeIncrement;
853
case
ScrollEventType
.LargeIncrement:
854
type =
ScrollEventType
.LargeDecrement;
867
case
ScrollEventType
.First:
871
case
ScrollEventType
.Last:
875
case
ScrollEventType
.SmallDecrement:
879
case
ScrollEventType
.SmallIncrement:
883
case
ScrollEventType
.LargeDecrement:
887
case
ScrollEventType
.LargeIncrement:
891
case
ScrollEventType
.ThumbPosition:
892
case
ScrollEventType
.ThumbTrack:
winforms\Managed\System\WinForms\ScrollEvent.cs (6)
24
readonly
ScrollEventType
type;
36
public ScrollEventArgs(
ScrollEventType
type, int newValue) {
48
public ScrollEventArgs(
ScrollEventType
type, int newValue, ScrollOrientation scroll) {
55
public ScrollEventArgs(
ScrollEventType
type, int oldValue, int newValue) {
64
public ScrollEventArgs(
ScrollEventType
type, int oldValue, int newValue, ScrollOrientation scroll) {
91
public
ScrollEventType
Type {
winforms\Managed\System\WinForms\ToolStrip.cs (1)
3860
if (se.Type !=
ScrollEventType
.ThumbTrack && se.NewValue != se.OldValue) {