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屬性的功能也可以透過呼叫GetScrollStateSetScrollState方法 (使用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.

適用於

另請參閱