| File: System\Windows\Forms\Scrolling\HScrollProperties.cs | Web Access |
| Project: src\winforms\src\System.Windows.Forms\System.Windows.Forms.csproj (System.Windows.Forms) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Windows.Forms; /// <summary> /// Basic Properties for HScroll. /// </summary> public class HScrollProperties : ScrollProperties { public HScrollProperties(ScrollableControl? container) : base(container) { } private protected override int GetPageSize(ScrollableControl parent) => parent.ClientRectangle.Width; private protected override SCROLLBAR_CONSTANTS Orientation => SCROLLBAR_CONSTANTS.SB_HORZ; private protected override int GetHorizontalDisplayPosition(ScrollableControl parent) => -_value; private protected override int GetVerticalDisplayPosition(ScrollableControl parent) => parent.DisplayRectangle.Y; }