ToolBarButton.Enabled 屬性

定義

取得或設定值,指出是否啟用按鈕。

public:
 property bool Enabled { bool get(); void set(bool value); };
public bool Enabled { get; set; }
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

屬性值

如果按鈕被啟用,則為 true,否則為 false。 預設為 true

備註

Enabled當 屬性設定為 false 時,無法按一下工具列按鈕,而且按鈕的外觀會變更。 ImageText 指派給按鈕的 會顯示灰色。如果影像或文字有多個色彩,則會以單色灰色顯示。

適用於