IsChecked Function (TreeView)

Class

TreeView.

Action

Tests whether the item check box of the widget is checked.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

bCheckState = tree.IsChecked(Itemli)
Variable Description
bCheckState TRUE if the object is checked. BOOLEAN.
Item The item to find. LISTITEM.

Notes

IsChecked returns TRUE if the widget’s checkbox is checked; FALSE if it is unchecked.

Use this function on TreeViewEx widgets instead of the GetItemImageState method.

For information on specifying Item, see the ListView class.

If the widget does not have check boxes, IsChecked returns an exception, E_WINDOW_TYPE_MISMATCH.