78 references to ScrollEventType
System.Windows.Forms (78)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (9)
2589
ScrollRowsByCount(rowsToScroll, rowsToScroll > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement);
2693
ScrollEventType
scrollEventType;
2755
scrollEventType = change > 0 ?
ScrollEventType
.SmallIncrement :
ScrollEventType
.SmallDecrement;
2759
scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingCol, DisplayedBandsInfo.FirstDisplayedScrollingCol) > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement;
2764
scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol) > 1 ?
ScrollEventType
.LargeDecrement :
ScrollEventType
.SmallDecrement;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (34)
16564
ScrollRowsByCount(-1,
ScrollEventType
.SmallDecrement);
16586
ScrollRowsByCount(1,
ScrollEventType
.SmallIncrement);
18841
private void OnScroll(
ScrollEventType
scrollEventType, int oldValue, int newValue, ScrollOrientation orientation)
26286
ScrollRowsByCount(-rowsToScroll, rowsToScroll > 1 ?
ScrollEventType
.LargeDecrement :
ScrollEventType
.SmallDecrement);
26314
ScrollRowsByCount(rowsToScroll, rowsToScroll > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement);
26322
private unsafe void ScrollRows(int rowCount, int deltaY,
ScrollEventType
scrollEventType)
26394
private void ScrollRowsByCount(int rows,
ScrollEventType
scrollEventType)
26397
Debug.Assert((rows > 0 && (scrollEventType ==
ScrollEventType
.SmallIncrement || scrollEventType ==
ScrollEventType
.LargeIncrement))
26398
|| (rows < 0 && (scrollEventType ==
ScrollEventType
.SmallDecrement || scrollEventType ==
ScrollEventType
.LargeDecrement)));
26519
ScrollEventType
scrollEventType =
ScrollEventType
.EndScroll;
26526
scrollEventType = rowCount > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement;
26532
scrollEventType = rowCount < -1 ?
ScrollEventType
.LargeDecrement :
ScrollEventType
.SmallDecrement;
28407
if (se.Type is
ScrollEventType
.SmallIncrement or
ScrollEventType
.SmallDecrement)
28409
int dCols = (se.Type ==
ScrollEventType
.SmallIncrement) ? 1 : -1;
28413
else if (se.Type !=
ScrollEventType
.EndScroll)
28433
case
ScrollEventType
.SmallIncrement:
28440
ScrollRowsByCount(1,
ScrollEventType
.SmallIncrement);
28447
case
ScrollEventType
.SmallDecrement:
28451
ScrollRowsByCount(-1,
ScrollEventType
.SmallDecrement);
28458
case
ScrollEventType
.LargeIncrement:
28467
case
ScrollEventType
.LargeDecrement:
28474
case
ScrollEventType
.ThumbTrack:
28475
case
ScrollEventType
.First:
28476
case
ScrollEventType
.Last:
29881
ScrollRowsByCount(normOffset, normOffset < 0 ?
ScrollEventType
.SmallDecrement :
ScrollEventType
.SmallIncrement);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3688
if (se.Type !=
ScrollEventType
.ThumbTrack && se.NewValue != se.OldValue)
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
1437
ScrollEventType
type = (
ScrollEventType
)m.WParamInternal.LOWORD;
1438
if (type !=
ScrollEventType
.EndScroll)
System\Windows\Forms\Scrolling\ScrollBar.cs (26)
539
DoScroll(
ScrollEventType
.SmallDecrement);
545
DoScroll(
ScrollEventType
.SmallIncrement);
552
DoScroll(
ScrollEventType
.EndScroll);
622
ScrollEventType
type = (
ScrollEventType
)m.WParamInternal.LOWORD;
626
private unsafe void DoScroll(
ScrollEventType
type)
633
case
ScrollEventType
.First:
634
type =
ScrollEventType
.Last;
637
case
ScrollEventType
.Last:
638
type =
ScrollEventType
.First;
641
case
ScrollEventType
.SmallDecrement:
642
type =
ScrollEventType
.SmallIncrement;
645
case
ScrollEventType
.SmallIncrement:
646
type =
ScrollEventType
.SmallDecrement;
649
case
ScrollEventType
.LargeDecrement:
650
type =
ScrollEventType
.LargeIncrement;
653
case
ScrollEventType
.LargeIncrement:
654
type =
ScrollEventType
.LargeDecrement;
667
case
ScrollEventType
.First:
671
case
ScrollEventType
.Last:
675
case
ScrollEventType
.SmallDecrement:
679
case
ScrollEventType
.SmallIncrement:
683
case
ScrollEventType
.LargeDecrement:
687
case
ScrollEventType
.LargeIncrement:
691
case
ScrollEventType
.ThumbPosition:
692
case
ScrollEventType
.ThumbTrack:
System\Windows\Forms\Scrolling\ScrollEventArgs.cs (5)
15
public ScrollEventArgs(
ScrollEventType
type, int newValue)
25
public ScrollEventArgs(
ScrollEventType
type, int newValue, ScrollOrientation scroll)
33
public ScrollEventArgs(
ScrollEventType
type, int oldValue, int newValue)
40
public ScrollEventArgs(
ScrollEventType
type, int oldValue, int newValue, ScrollOrientation scroll)
51
public
ScrollEventType
Type { get; }