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)
16766private void InvalidateGridFocusOnScroll(int change, ScrollOrientation orientation) 16775if (orientation == ScrollOrientation.HorizontalScroll) 18831private void OnScroll(ScrollEventType scrollEventType, int oldValue, int newValue, ScrollOrientation orientation) 18841if (orientation == ScrollOrientation.VerticalScroll) 26374OnScroll(scrollEventType, newScrolledOffRowCount - rowCount, newScrolledOffRowCount, ScrollOrientation.VerticalScroll);
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
1344WmOnScroll(ref m, oldValue, pos, ScrollOrientation.VerticalScroll); 1436WmOnScroll(ref m, oldValue, pos, ScrollOrientation.HorizontalScroll); 1443private 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)
1984foreach (ScrollOrientation orientation in Enum.GetValues(typeof(ScrollOrientation)))
System\Windows\Forms\ScrollBarTests.cs (9)
2486Assert.Equal(ScrollOrientation.HorizontalScroll, e.ScrollOrientation); 2576yield return new object[] { true, 100, 200, ScrollOrientation.HorizontalScroll, new Size(10, 20), new Size(20, 20) }; 2577yield return new object[] { true, 200, 100, ScrollOrientation.HorizontalScroll, new Size(10, 20), new Size(5, 20) }; 2578yield return new object[] { true, 100, 200, ScrollOrientation.VerticalScroll, new Size(10, 20), new Size(10, 40) }; 2579yield return new object[] { true, 200, 100, ScrollOrientation.VerticalScroll, new Size(10, 20), new Size(10, 10) }; 2581yield return new object[] { false, 100, 200, ScrollOrientation.HorizontalScroll, new Size(10, 20), new Size(10, 20) }; 2582yield return new object[] { false, 100, 100, ScrollOrientation.VerticalScroll, new Size(10, 20), new Size(10, 20) }; 2587public void ScrollBar_ScaleScrollBarForDpi_InvokeWithSize_Nop(bool scaleScrollBarForDpiChange, int deviceDpiOld, int deviceDpiNew, ScrollOrientation orientation, Size controlSize, Size expected) 2841Assert.Equal(ScrollOrientation.HorizontalScroll, e.ScrollOrientation);
System\Windows\Forms\ScrollEventArgsTests.cs (12)
20Assert.Equal(ScrollOrientation.HorizontalScroll, e.ScrollOrientation); 34Assert.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)] 42public 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)] 56public void Ctor_ScrollEventType_Int_Int_ScrollOrientation(ScrollEventType type, int oldValue, int newValue, ScrollOrientation scroll)
System\Windows\Forms\ToolStripDropDownTests.cs (2)
4723foreach (ScrollOrientation orientation in Enum.GetValues(typeof(ScrollOrientation)))
System\Windows\Forms\ToolStripTests.cs (4)
6572foreach (ScrollOrientation orientation in Enum.GetValues(typeof(ScrollOrientation))) 6614foreach (ScrollOrientation orientation in Enum.GetValues(typeof(ScrollOrientation)))