ScrollableControl.VScroll ScrollableControl.VScroll ScrollableControl.VScroll ScrollableControl.VScroll Property

定义

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

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

属性值

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

注解

还可以通过对VScroll使用GetScrollState SetScrollState 作为ScrollStateVScrollVisible参数的和方法的调用来实现属性的功能。The functionality of the VScroll property can also be accomplished through calls to the GetScrollState and SetScrollState methods using ScrollStateVScrollVisible 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.

适用于

另请参阅