ChoiceActionBase.IsHierarchical() Method
Checks whether the Action’s ChoiceActionBase.Items collection has a tree-like structure.
Namespace: DevExpress.ExpressApp.Actions
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Returns
Type | Description |
---|---|
Boolean | true if there are Items containing other Items; otherwise false. |
Remarks
The IsHierarchical method iterates through the Action’s ChoiceActionBase.Items collection (represented by the ChoiceActionItemCollection class) and detects if there are child Items.
This method returns true
The items are displayed via a menu editor (in the tree mode).
This method returns false
The items are displayed via a combo box editor (in the list mode).
Note
The control used to display a Single Choice Action in the list or tree mode depends on the SingleChoiceAction.ItemType property. To see how Single Choice Actions are displayed in different modes, see the Actions section in the Feature Center Demo, installed with XAF in the %PUBLIC%\Documents\DevExpress Demos 24.1\Components\XAF\FeatureCenter.NETFramework.XPO folder, or refer to the Feature Center demo online.