Vcl.CheckLst.TCheckListBox.State
Delphi
property State[Index: Integer]: TCheckBoxState read GetState write SetState;
C++
__property Vcl::Stdctrls::TCheckBoxState State[int Index] = {read=GetState, write=SetState};
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| property | public | Vcl.CheckLst.pas Vcl.CheckLst.hpp |
Vcl.CheckLst | TCheckListBox |
説明
どの項目がチェックされたかを示します。
Items 配列の各メンバーに対して、State は、そのチェック ボックスが選択されているか(cbChecked)、選択されていないか(cbUnchecked)、または無効になっているか(cbGrayed)を示します。
- メモ:
cbGrayedは、中間状態に相当します。
State は、Boolean Checked プロパティと Boolean ItemEnabled プロパティによって提供される情報を組み合わせます。
- Checked が True の場合、State は
cbCheckedとなります。しかし、Checked が False の場合には、State はcbUncheckedまたはcbGrayedの可能性があります。 - State が
cbGrayedの場合、ItemEnabled は False となります。しかし、ItemEnabled はまた、State がcbUncheckedまたはcbCheckedの場合にも False の可能性があります。