Command.Enabled
- Mise à jour2025-07-21
- Temps de lecture : 1 minute(s)
Command.Enabled
Syntax
Command.Enabled
Data Type
Purpose
Specifies to enable or disable the menu item or user interface element that invokes the command.
Remarks
The command computes the value of this property according to the kind of command and the current state of the items to which the command applies. However, when you set this property, the command returns only the property values that you set for the remainder of the life of the Command object.