78 references to ScrollEventType
System.Windows.Forms (78)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (9)
2594
ScrollRowsByCount(rowsToScroll, rowsToScroll > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement);
2698
ScrollEventType
scrollEventType;
2760
scrollEventType = change > 0 ?
ScrollEventType
.SmallIncrement :
ScrollEventType
.SmallDecrement;
2764
scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingCol, DisplayedBandsInfo.FirstDisplayedScrollingCol) > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement;
2769
scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol) > 1 ?
ScrollEventType
.LargeDecrement :
ScrollEventType
.SmallDecrement;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (34)
16629
ScrollRowsByCount(-1,
ScrollEventType
.SmallDecrement);
16651
ScrollRowsByCount(1,
ScrollEventType
.SmallIncrement);
18906
private void OnScroll(
ScrollEventType
scrollEventType, int oldValue, int newValue, ScrollOrientation orientation)
26351
ScrollRowsByCount(-rowsToScroll, rowsToScroll > 1 ?
ScrollEventType
.LargeDecrement :
ScrollEventType
.SmallDecrement);
26379
ScrollRowsByCount(rowsToScroll, rowsToScroll > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement);
26387
private unsafe void ScrollRows(int rowCount, int deltaY,
ScrollEventType
scrollEventType)
26459
private void ScrollRowsByCount(int rows,
ScrollEventType
scrollEventType)
26462
Debug.Assert((rows > 0 && (scrollEventType ==
ScrollEventType
.SmallIncrement || scrollEventType ==
ScrollEventType
.LargeIncrement))
26463
|| (rows < 0 && (scrollEventType ==
ScrollEventType
.SmallDecrement || scrollEventType ==
ScrollEventType
.LargeDecrement)));
26584
ScrollEventType
scrollEventType =
ScrollEventType
.EndScroll;
26591
scrollEventType = rowCount > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement;
26597
scrollEventType = rowCount < -1 ?
ScrollEventType
.LargeDecrement :
ScrollEventType
.SmallDecrement;
28472
if (se.Type is
ScrollEventType
.SmallIncrement or
ScrollEventType
.SmallDecrement)
28474
int dCols = (se.Type ==
ScrollEventType
.SmallIncrement) ? 1 : -1;
28478
else if (se.Type !=
ScrollEventType
.EndScroll)
28498
case
ScrollEventType
.SmallIncrement:
28505
ScrollRowsByCount(1,
ScrollEventType
.SmallIncrement);
28512
case
ScrollEventType
.SmallDecrement:
28516
ScrollRowsByCount(-1,
ScrollEventType
.SmallDecrement);
28523
case
ScrollEventType
.LargeIncrement:
28532
case
ScrollEventType
.LargeDecrement:
28539
case
ScrollEventType
.ThumbTrack:
28540
case
ScrollEventType
.First:
28541
case
ScrollEventType
.Last:
29946
ScrollRowsByCount(normOffset, normOffset < 0 ?
ScrollEventType
.SmallDecrement :
ScrollEventType
.SmallIncrement);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3693
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; }