ScrollableControl.VScroll 属性

定义

获取或设置一个值,该值指示垂直滚动条是否可见。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

属性值

Boolean

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

注解

VScroll还可以通过对 GetScrollState SetScrollState 使用作为参数的和方法的调用来实现属性的功能 ScrollStateVScrollVisibleThe 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. 因此, HScroll VScroll 当启用时,将或属性设置为 true 不起作用 AutoScrollTherefore, setting the HScroll or VScroll properties to true have no effect when AutoScroll is enabled.

适用于

另请参阅