IUiCommandAction.Enabled

Syntax

Enabled: Boolean;

Description

The Enabled property determines whether an action can be executed.

Comments

If the property is set to True, the action is available. In this case corresponding menu option and toolbar button are available in the opened object.

If the property is set to False, the action is unavailable. In this case corresponding menu option and toolbar button in the opened object are highlighted in gray.

Example

The property use is given in the example for the IUiCommandActionCustomize.Add method.

See also:

IUiCommandAction