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

属性值

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

注解

还可以通过调用 GetScrollState SetScrollState 并使用 ScrollStateVScrollVisible 作为参数来实现 VScroll 属性的功能。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. 因此,启用 AutoScroll 后,将 HScrollVScroll 属性设置为 true 不起作用。Therefore, setting the HScroll or VScroll properties to true have no effect when AutoScroll is enabled.

适用于

另请参阅