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)
16782
private void InvalidateGridFocusOnScroll(int change,
ScrollOrientation
orientation)
16791
if (orientation ==
ScrollOrientation
.HorizontalScroll)
18847
private void OnScroll(ScrollEventType scrollEventType, int oldValue, int newValue,
ScrollOrientation
orientation)
18857
if (orientation ==
ScrollOrientation
.VerticalScroll)
26391
OnScroll(scrollEventType, newScrolledOffRowCount - rowCount, newScrolledOffRowCount,
ScrollOrientation
.VerticalScroll);
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
1338
WmOnScroll(ref m, oldValue, pos,
ScrollOrientation
.VerticalScroll);
1430
WmOnScroll(ref m, oldValue, pos,
ScrollOrientation
.HorizontalScroll);
1437
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)
1986
foreach (
ScrollOrientation
orientation in Enum.GetValues(typeof(
ScrollOrientation
)))
System\Windows\Forms\ScrollBarTests.cs (9)
2488
Assert.Equal(
ScrollOrientation
.HorizontalScroll, e.ScrollOrientation);
2578
yield return new object[] { true, 100, 200,
ScrollOrientation
.HorizontalScroll, new Size(10, 20), new Size(20, 20) };
2579
yield return new object[] { true, 200, 100,
ScrollOrientation
.HorizontalScroll, new Size(10, 20), new Size(5, 20) };
2580
yield return new object[] { true, 100, 200,
ScrollOrientation
.VerticalScroll, new Size(10, 20), new Size(10, 40) };
2581
yield return new object[] { true, 200, 100,
ScrollOrientation
.VerticalScroll, new Size(10, 20), new Size(10, 10) };
2583
yield return new object[] { false, 100, 200,
ScrollOrientation
.HorizontalScroll, new Size(10, 20), new Size(10, 20) };
2584
yield return new object[] { false, 100, 100,
ScrollOrientation
.VerticalScroll, new Size(10, 20), new Size(10, 20) };
2589
public void ScrollBar_ScaleScrollBarForDpi_InvokeWithSize_Nop(bool scaleScrollBarForDpiChange, int deviceDpiOld, int deviceDpiNew,
ScrollOrientation
orientation, Size controlSize, Size expected)
2843
Assert.Equal(
ScrollOrientation
.HorizontalScroll, e.ScrollOrientation);
System\Windows\Forms\ScrollEventArgsTests.cs (12)
22
Assert.Equal(
ScrollOrientation
.HorizontalScroll, e.ScrollOrientation);
36
Assert.Equal(
ScrollOrientation
.HorizontalScroll, e.ScrollOrientation);
40
[InlineData((ScrollEventType.EndScroll + 1), -2, (
ScrollOrientation
.HorizontalScroll - 1))]
41
[InlineData(ScrollEventType.LargeIncrement, -1,
ScrollOrientation
.HorizontalScroll)]
42
[InlineData(ScrollEventType.EndScroll, 0,
ScrollOrientation
.VerticalScroll)]
43
[InlineData(ScrollEventType.LargeIncrement, 1,
ScrollOrientation
.VerticalScroll)]
44
public void Ctor_ScrollEventType_Int_ScrollOrientation(ScrollEventType type, int newValue,
ScrollOrientation
scroll)
54
[InlineData((ScrollEventType.EndScroll + 1), -2, -2, (
ScrollOrientation
.HorizontalScroll - 1))]
55
[InlineData(ScrollEventType.LargeIncrement, -1, -1,
ScrollOrientation
.HorizontalScroll)]
56
[InlineData(ScrollEventType.EndScroll, 0, 0,
ScrollOrientation
.VerticalScroll)]
57
[InlineData(ScrollEventType.LargeIncrement, 1, 2,
ScrollOrientation
.VerticalScroll)]
58
public void Ctor_ScrollEventType_Int_Int_ScrollOrientation(ScrollEventType type, int oldValue, int newValue,
ScrollOrientation
scroll)
System\Windows\Forms\ToolStripDropDownTests.cs (2)
4725
foreach (
ScrollOrientation
orientation in Enum.GetValues(typeof(
ScrollOrientation
)))
System\Windows\Forms\ToolStripTests.cs (4)
6574
foreach (
ScrollOrientation
orientation in Enum.GetValues(typeof(
ScrollOrientation
)))
6616
foreach (
ScrollOrientation
orientation in Enum.GetValues(typeof(
ScrollOrientation
)))