TrackBar.AutoSize 屬性

定義

取得或設定值,指出追蹤列的高度或寬度是否會自動調整大小。

public:
 property bool AutoSize { bool get(); void set(bool value); };
public:
 virtual property bool AutoSize { bool get(); void set(bool value); };
public bool AutoSize { get; set; }
[System.ComponentModel.Browsable(true)]
public override bool AutoSize { get; set; }
member this.AutoSize : bool with get, set
[<System.ComponentModel.Browsable(true)>]
member this.AutoSize : bool with get, set
Public Property AutoSize As Boolean
Public Overrides Property AutoSize As Boolean

屬性值

Boolean

如果 TrackBar 會自動調整大小,則為 true,否則為 false。 預設為 true

屬性

備註

如果水準對齊) 或 (垂直對齊) ,您可以將 屬性設定 AutoSizetrue ,使追蹤列調整其高度 (。 高度或寬度會根據顯示追蹤列的螢幕解析度調整為標準大小。 如果您想要自行調整大小,請將 AutoSize 屬性 false 設定為 。

適用於