System.Actions.TContainedActionList.EnumByCategory
Delphi
function EnumByCategory(Proc: TEnumActionListEvent;
const Category: string;
const IncludeSubCategory: Boolean = True): boolean; overload;
function EnumByCategory(Proc: TEnumActionListRef;
const Category: string;
const IncludeSubCategory: Boolean = True): boolean; overload;
C++
bool __fastcall EnumByCategory(TEnumActionListEvent Proc, const System::UnicodeString Category, const bool IncludeSubCategory = true)/* overload */;
bool __fastcall EnumByCategory(_di_TEnumActionListRef Proc, const System::UnicodeString Category, const bool IncludeSubCategory = true)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Actions.pas System.Actions.hpp |
System.Actions | TContainedActionList |
Description
Calls the specified procedure (TEnumActionListEvent or TEnumActionListRef) once for every action of the list in the specified category.
IncludeSubCategory determines whether actions in subcategories are included (True) or not (False) in the loop of calls.
Proc, an instance of either TEnumActionListEvent or TEnumActionListRef, can set its Done argument to True to stop the loop of calls prematurely.