Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChoiceActionBase.IsHierarchical() Method

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

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public bool IsHierarchical()

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

    SingleChoiceAction_Tree

  • This method returns false

    The items are displayed via a combo box editor (in the list mode).

    SingleChoiceAction_List

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

See Also