Show: Delphi C++
Display Preferences

Vcl.CheckLst.TCheckListBox.State

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property State[Index: Integer]: TCheckBoxState read GetState write SetState;

C++

__property Vcl::Stdctrls::TCheckBoxState State[int Index] = {read=GetState, write=SetState};

Properties

Type Visibility Source Unit Parent
property public
Vcl.CheckLst.pas
Vcl.CheckLst.hpp
Vcl.CheckLst TCheckListBox

Description

Indicates which items are checked.

For each member of the Items array, State indicates whether its check box is selected (cbChecked), deselected (cbUnchecked), or dimmed (cbGrayed).

Note: cbGrayed corresponds to the indeterminate state.

State combines the information provided by the Boolean Checked property and the Boolean ItemEnabled property:

  • When Checked is True, State is cbChecked. However, when Checked is False, State may be either cbUnchecked or cbGrayed.
  • When State is cbGrayed, ItemEnabled is False. However, ItemEnabled may also be False when State is cbUnchecked or cbChecked.)

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance