Type: Boolean
Availability: Read or write at any time
The enabled property of the MenuItem class specifies whether the menu can respond to user-generated events.
The enabled property settings are listed in the following table.
Setting | Description |
---|---|
true | Enables the object to respond to events (the default) |
false | Prevents the object from responding to events |
This property allows menu items to be enabled or disabled at run time.