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 使用 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. 因此, HScroll VScroll 當啟用時,將或屬性設定為 true 不會有任何作用 AutoScrollTherefore, setting the HScroll or VScroll properties to true have no effect when AutoScroll is enabled.

適用於

另請參閱