State Property (Specific to MSAA CheckBox and MSAA RadioButton Objects)

Applies to TestComplete 15.65, last modified on July 17, 2024


Use this property to get or set an object’s current state.



Read-Write Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following objects:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

One of the following constants:

Constant Value Description
cbUnchecked 0 The control is unchecked.
cbChecked 1 The control is checked.
cbGrayed 2 The control is grayed.
Note: This state does not apply to radio buttons.


To toggle the control’s state, use the DoDefaultAction method.

See Also

DoDefaultAction Method (MSAA Objects)

Highlight search results