Vcl.CheckLst.TCheckListBox.CheckAll
Delphi
procedure CheckAll(AState: TCheckBoxState; AllowGrayed: Boolean = True; AllowDisabled: Boolean = True);
C++
void __fastcall CheckAll(Vcl::Stdctrls::TCheckBoxState AState, bool AllowGrayed = true, bool AllowDisabled = true);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.CheckLst.pas Vcl.CheckLst.hpp |
Vcl.CheckLst | TCheckListBox |
Description
Changes the state of the check boxes in the TCheckListBox control.
Use CheckAll to change the state of the check boxes in a TCheckListBox control. CheckAll is particularly useful when a bulk change is required for all the check boxes in the list. The following table lists the parameters of the method:
Name | Description |
---|---|
AState |
Specifies the new state that will be assigned to all check boxes. |
AllowGrayed |
Specifies whether the change will also affect grayed check boxes. The default value of the AllowGrayed parameter is true. |
AllowDisabled |
Specifies whether the change will also affect disabled check boxes. The default value of the AllowDisabled parameter is true. |
See Also
Code Examples