Command.Enabled

Syntax

Command.Enabled

Data Type

Boolean

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.

See Also

Command.Visible