ScrollableControl.HScroll ScrollableControl.HScroll ScrollableControl.HScroll ScrollableControl.HScroll Property

定义

获取或设置一个值,该值指示水平滚动条是否可见。Gets or sets a value indicating whether the horizontal scroll bar is visible.

protected:
 property bool HScroll { bool get(); void set(bool value); };
protected bool HScroll { get; set; }
member this.HScroll : bool with get, set
Protected Property HScroll As Boolean

属性值

如果水平滚动条是可见的,则为 true;反之,则为 falsetrue if the horizontal scroll bar is visible; otherwise, false.

注解

还可以通过对HScroll使用GetScrollState SetScrollState 作为ScrollStateHScrollVisible参数的和方法的调用来实现属性的功能。The functionality of the HScroll property can also be accomplished through calls to the GetScrollState and SetScrollState methods using ScrollStateHScrollVisible as the parameter.

注意AutoScroll自动维护滚动条的可见性。Note AutoScroll maintains the visibility of the scrollbars automatically. 因此,当启用HScrollVScroll true ,将AutoScroll或属性设置为不起作用。Therefore, setting the HScroll or VScroll properties to true have no effect when AutoScroll is enabled.

适用于

另请参阅