共用方式為


OleCommandStatus.Enabled Property

Definition

Retrieves or sets a value indicating whether this command 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

Returns true if the command is enabled; otherwise returns false.

Applies to