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)
26278
ScrollRowsByCount(-rowsToScroll, rowsToScroll > 1 ?
ScrollEventType
.LargeDecrement :
ScrollEventType
.SmallDecrement);
26306
ScrollRowsByCount(rowsToScroll, rowsToScroll > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement);
26314
private unsafe void ScrollRows(int rowCount, int deltaY,
ScrollEventType
scrollEventType)
26386
private void ScrollRowsByCount(int rows,
ScrollEventType
scrollEventType)
26389
Debug.Assert((rows > 0 && (scrollEventType ==
ScrollEventType
.SmallIncrement || scrollEventType ==
ScrollEventType
.LargeIncrement))
26390
|| (rows < 0 && (scrollEventType ==
ScrollEventType
.SmallDecrement || scrollEventType ==
ScrollEventType
.LargeDecrement)));
26511
ScrollEventType
scrollEventType =
ScrollEventType
.EndScroll;
26518
scrollEventType = rowCount > 1 ?
ScrollEventType
.LargeIncrement :
ScrollEventType
.SmallIncrement;
26524
scrollEventType = rowCount < -1 ?
ScrollEventType
.LargeDecrement :
ScrollEventType
.SmallDecrement;
28399
if (se.Type is
ScrollEventType
.SmallIncrement or
ScrollEventType
.SmallDecrement)
28401
int dCols = (se.Type ==
ScrollEventType
.SmallIncrement) ? 1 : -1;
28405
else if (se.Type !=
ScrollEventType
.EndScroll)
28425
case
ScrollEventType
.SmallIncrement:
28432
ScrollRowsByCount(1,
ScrollEventType
.SmallIncrement);
28439
case
ScrollEventType
.SmallDecrement:
28443
ScrollRowsByCount(-1,
ScrollEventType
.SmallDecrement);
28450
case
ScrollEventType
.LargeIncrement:
28459
case
ScrollEventType
.LargeDecrement:
28466
case
ScrollEventType
.ThumbTrack:
28467
case
ScrollEventType
.First:
28468
case
ScrollEventType
.Last:
29873
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; }