[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'CheckLst' (#lcl)

# TCustomCheckListBox.ItemEnabled

Provides indexed access to the enabled state for Items in the control.

## Declaration

Source position: checklst.pas line 84

`public property TCustomCheckListBox.ItemEnabled[AIndex: Integer] : Boolean read GetItemEnabled write SetItemEnabled;`

## Description

ItemEnabled is an indexed Boolean property which provides access to the enabled state for Items in the control. When the property value is True, the item can be selected to change its State or Checked values. When it is False, it behaves as if the check box has been disabled for the item.

Reading the value for the property cause the CheckIndex method to be called to validate the value in Index. If a handle has been allocated for the control, the GetItemEnabled method in the widget set class is called to get the value for the property. Otherwise, the disabled state in cached item data is examined to get the property value.

Setting the value for the property causes the CheckIndex method to be called to validate the value in Index. If a handle has been allocated for the control, the SetItemEnabled method in the widget set class is called to set the value for the property. Otherwise, the disabled state in cached item data is update with the new property value.

Use the Enabled property to indicate whether the check list box control can be updated.

## See also

TCustomCheckListBox.AllowGrayed |  | Indicates if the item can use the "grayed" (or unselectable) check box state.
TCustomListBox.Items |  | The list of all items defined in the control.
TControl.Enabled |  | Determines whether the control responds to mouse or keyboard input.