47 references to ScrollOrientation
System.Windows.Forms (18)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2769OnScroll(scrollEventType, _horizontalOffset + change, _horizontalOffset, ScrollOrientation.HorizontalScroll);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
16782private void InvalidateGridFocusOnScroll(int change, ScrollOrientation orientation) 16791if (orientation == ScrollOrientation.HorizontalScroll) 18847private void OnScroll(ScrollEventType scrollEventType, int oldValue, int newValue, ScrollOrientation orientation) 18857if (orientation == ScrollOrientation.VerticalScroll) 26391OnScroll(scrollEventType, newScrolledOffRowCount - rowCount, newScrolledOffRowCount, ScrollOrientation.VerticalScroll);
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
1338WmOnScroll(ref m, oldValue, pos, ScrollOrientation.VerticalScroll); 1430WmOnScroll(ref m, oldValue, pos, ScrollOrientation.HorizontalScroll); 1437private void WmOnScroll(ref Message m, int oldValue, int value, ScrollOrientation scrollOrientation)
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
26private readonly ScrollOrientation _scrollOrientation; 46_scrollOrientation = ScrollOrientation.VerticalScroll; 50_scrollOrientation = ScrollOrientation.HorizontalScroll; 487if (_scrollOrientation == ScrollOrientation.VerticalScroll)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarFirstPageButtonAccessibleObject.cs (1)
30return OwningScrollBar._scrollOrientation == ScrollOrientation.HorizontalScroll
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarLastPageButtonAccessibleObject.cs (1)
30return OwningScrollBar._scrollOrientation == ScrollOrientation.HorizontalScroll
System\Windows\Forms\Scrolling\ScrollEventArgs.cs (3)
25public ScrollEventArgs(ScrollEventType type, int newValue, ScrollOrientation scroll) 40public ScrollEventArgs(ScrollEventType type, int oldValue, int newValue, ScrollOrientation scroll) 66public ScrollOrientation ScrollOrientation { get; }
System.Windows.Forms.Tests (29)
System\Windows\Forms\ScrollableControlTests.cs (2)
1986foreach (ScrollOrientation orientation in Enum.GetValues(typeof(ScrollOrientation)))
System\Windows\Forms\ScrollBarTests.cs (9)
2488Assert.Equal(ScrollOrientation.HorizontalScroll, e.ScrollOrientation); 2578yield return new object[] { true, 100, 200, ScrollOrientation.HorizontalScroll, new Size(10, 20), new Size(20, 20) }; 2579yield return new object[] { true, 200, 100, ScrollOrientation.HorizontalScroll, new Size(10, 20), new Size(5, 20) }; 2580yield return new object[] { true, 100, 200, ScrollOrientation.VerticalScroll, new Size(10, 20), new Size(10, 40) }; 2581yield return new object[] { true, 200, 100, ScrollOrientation.VerticalScroll, new Size(10, 20), new Size(10, 10) }; 2583yield return new object[] { false, 100, 200, ScrollOrientation.HorizontalScroll, new Size(10, 20), new Size(10, 20) }; 2584yield return new object[] { false, 100, 100, ScrollOrientation.VerticalScroll, new Size(10, 20), new Size(10, 20) }; 2589public void ScrollBar_ScaleScrollBarForDpi_InvokeWithSize_Nop(bool scaleScrollBarForDpiChange, int deviceDpiOld, int deviceDpiNew, ScrollOrientation orientation, Size controlSize, Size expected) 2843Assert.Equal(ScrollOrientation.HorizontalScroll, e.ScrollOrientation);
System\Windows\Forms\ScrollEventArgsTests.cs (12)
22Assert.Equal(ScrollOrientation.HorizontalScroll, e.ScrollOrientation); 36Assert.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)] 44public 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)] 58public void Ctor_ScrollEventType_Int_Int_ScrollOrientation(ScrollEventType type, int oldValue, int newValue, ScrollOrientation scroll)
System\Windows\Forms\ToolStripDropDownTests.cs (2)
4725foreach (ScrollOrientation orientation in Enum.GetValues(typeof(ScrollOrientation)))
System\Windows\Forms\ToolStripTests.cs (4)
6574foreach (ScrollOrientation orientation in Enum.GetValues(typeof(ScrollOrientation))) 6616foreach (ScrollOrientation orientation in Enum.GetValues(typeof(ScrollOrientation)))