47 references to ScrollOrientation
System.Windows.Forms (18)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2769
OnScroll(scrollEventType, _horizontalOffset + change, _horizontalOffset,
ScrollOrientation
.HorizontalScroll);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
16766
private void InvalidateGridFocusOnScroll(int change,
ScrollOrientation
orientation)
16775
if (orientation ==
ScrollOrientation
.HorizontalScroll)
18831
private void OnScroll(ScrollEventType scrollEventType, int oldValue, int newValue,
ScrollOrientation
orientation)
18841
if (orientation ==
ScrollOrientation
.VerticalScroll)
26374
OnScroll(scrollEventType, newScrolledOffRowCount - rowCount, newScrolledOffRowCount,
ScrollOrientation
.VerticalScroll);
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
1344
WmOnScroll(ref m, oldValue, pos,
ScrollOrientation
.VerticalScroll);
1436
WmOnScroll(ref m, oldValue, pos,
ScrollOrientation
.HorizontalScroll);
1443
private void WmOnScroll(ref Message m, int oldValue, int value,
ScrollOrientation
scrollOrientation)
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
26
private readonly
ScrollOrientation
_scrollOrientation;
46
_scrollOrientation =
ScrollOrientation
.VerticalScroll;
50
_scrollOrientation =
ScrollOrientation
.HorizontalScroll;
487
if (_scrollOrientation ==
ScrollOrientation
.VerticalScroll)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarFirstPageButtonAccessibleObject.cs (1)
30
return OwningScrollBar._scrollOrientation ==
ScrollOrientation
.HorizontalScroll
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarLastPageButtonAccessibleObject.cs (1)
30
return OwningScrollBar._scrollOrientation ==
ScrollOrientation
.HorizontalScroll
System\Windows\Forms\Scrolling\ScrollEventArgs.cs (3)
25
public ScrollEventArgs(ScrollEventType type, int newValue,
ScrollOrientation
scroll)
40
public ScrollEventArgs(ScrollEventType type, int oldValue, int newValue,
ScrollOrientation
scroll)
66
public
ScrollOrientation
ScrollOrientation { get; }
System.Windows.Forms.Tests (29)
System\Windows\Forms\ScrollableControlTests.cs (2)
1984
foreach (
ScrollOrientation
orientation in Enum.GetValues(typeof(
ScrollOrientation
)))
System\Windows\Forms\ScrollBarTests.cs (9)
2486
Assert.Equal(
ScrollOrientation
.HorizontalScroll, e.ScrollOrientation);
2576
yield return new object[] { true, 100, 200,
ScrollOrientation
.HorizontalScroll, new Size(10, 20), new Size(20, 20) };
2577
yield return new object[] { true, 200, 100,
ScrollOrientation
.HorizontalScroll, new Size(10, 20), new Size(5, 20) };
2578
yield return new object[] { true, 100, 200,
ScrollOrientation
.VerticalScroll, new Size(10, 20), new Size(10, 40) };
2579
yield return new object[] { true, 200, 100,
ScrollOrientation
.VerticalScroll, new Size(10, 20), new Size(10, 10) };
2581
yield return new object[] { false, 100, 200,
ScrollOrientation
.HorizontalScroll, new Size(10, 20), new Size(10, 20) };
2582
yield return new object[] { false, 100, 100,
ScrollOrientation
.VerticalScroll, new Size(10, 20), new Size(10, 20) };
2587
public void ScrollBar_ScaleScrollBarForDpi_InvokeWithSize_Nop(bool scaleScrollBarForDpiChange, int deviceDpiOld, int deviceDpiNew,
ScrollOrientation
orientation, Size controlSize, Size expected)
2841
Assert.Equal(
ScrollOrientation
.HorizontalScroll, e.ScrollOrientation);
System\Windows\Forms\ScrollEventArgsTests.cs (12)
20
Assert.Equal(
ScrollOrientation
.HorizontalScroll, e.ScrollOrientation);
34
Assert.Equal(
ScrollOrientation
.HorizontalScroll, e.ScrollOrientation);
38
[InlineData((ScrollEventType.EndScroll + 1), -2, (
ScrollOrientation
.HorizontalScroll - 1))]
39
[InlineData(ScrollEventType.LargeIncrement, -1,
ScrollOrientation
.HorizontalScroll)]
40
[InlineData(ScrollEventType.EndScroll, 0,
ScrollOrientation
.VerticalScroll)]
41
[InlineData(ScrollEventType.LargeIncrement, 1,
ScrollOrientation
.VerticalScroll)]
42
public void Ctor_ScrollEventType_Int_ScrollOrientation(ScrollEventType type, int newValue,
ScrollOrientation
scroll)
52
[InlineData((ScrollEventType.EndScroll + 1), -2, -2, (
ScrollOrientation
.HorizontalScroll - 1))]
53
[InlineData(ScrollEventType.LargeIncrement, -1, -1,
ScrollOrientation
.HorizontalScroll)]
54
[InlineData(ScrollEventType.EndScroll, 0, 0,
ScrollOrientation
.VerticalScroll)]
55
[InlineData(ScrollEventType.LargeIncrement, 1, 2,
ScrollOrientation
.VerticalScroll)]
56
public void Ctor_ScrollEventType_Int_Int_ScrollOrientation(ScrollEventType type, int oldValue, int newValue,
ScrollOrientation
scroll)
System\Windows\Forms\ToolStripDropDownTests.cs (2)
4723
foreach (
ScrollOrientation
orientation in Enum.GetValues(typeof(
ScrollOrientation
)))
System\Windows\Forms\ToolStripTests.cs (4)
6572
foreach (
ScrollOrientation
orientation in Enum.GetValues(typeof(
ScrollOrientation
)))
6614
foreach (
ScrollOrientation
orientation in Enum.GetValues(typeof(
ScrollOrientation
)))