Command.ToggleState
- Updated2025-07-21
- 1 minute(s) read
Command.ToggleState
Syntax
Command.ToggleState
Data Type
Purpose
When the Command.IsToggle property is True , this property specifies the on or off state of the menu item or user interface element that represents the command. When a menu item represents the command, the state of the menu item indicates the value of this property.
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 you set for the remainder of the life of the Command object.