編輯

共用方式為


CommandBarControl.Enabled Property

Definition

Determines if the specified command bar control is 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

Property Value

Remarks

This property returns True if the specified command bar control is enabled; False if disabled.

For built-in controls, if you set the Enabled property to True, the application determines its state, but setting it to False will force it to be disabled.

Applies to