.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ChoiceActionBase.IsHierarchical() Method

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

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public bool IsHierarchical()
Public Function IsHierarchical As Boolean

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, or refer to the Feature Center demo online.

See Also