Skip to main content
.NET Framework 4.5.2+

ChoiceActionBase.IsHierarchical() Method

Checks whether the Action’s ChoiceActionBase.Items collection has a tree-like structure.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v23.1.dll

NuGet Package: DevExpress.ExpressApp


public bool IsHierarchical()


Type Description

true if there are Items containing other Items; otherwise false.


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).



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 23.1\Components\XAF\FeatureCenter.NETFramework.XPO folder, or refer to the Feature Center demo online.

See Also