ScrollableControl.HScroll 屬性

定義

取得或設定值,指出水平捲軸是否為可見的。Gets or sets a value indicating whether the horizontal scroll bar is visible.

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

屬性值

如果水平捲軸是可見的,則為 true,否則為 falsetrue if the horizontal scroll bar is visible; otherwise, false.

備註

HScroll 屬性的功能也可以透過呼叫 GetScrollState,並使用 ScrollStateHScrollVisible 作為參數來 SetScrollState 方法來完成。The functionality of the HScroll property can also be accomplished through calls to the GetScrollState and SetScrollState methods using ScrollStateHScrollVisible 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.

適用於

另請參閱