StatusBarPanel.MinWidth 屬性

定義

取得或設定 StatusBar 控制項內允許的狀態列面板最小寬度。

public:
 property int MinWidth { int get(); void set(int value); };
public int MinWidth { get; set; }
member this.MinWidth : int with get, set
Public Property MinWidth As Integer

屬性值

StatusBarPanel 的最小寬度 (以像素為單位)。

例外狀況

指派給屬性的值小於 0。

備註

MinWidth 屬性設定 Contents 為 或 Spring 以防止 StatusBarPanel 自動調整大小為太小的寬度時 AutoSize ,就會使用 屬性。 當 屬性 AutoSize 設定為 None 時, MinWidth 屬性會自動設定為與 屬性相同的值 Width

適用於

另請參閱