Table of Contents

Method ForEachItem

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ForEachItem(Action<MenuItem>, bool)

Performs some action for the each element in Items.

public virtual void ForEachItem(Action<MenuItem> action, bool recursive = false)

Parameters

action Action<MenuItem>

Specifies action which will be called for the each item.

recursive bool

Specifies whether to call action for all sub-items recursively or only for the direct sub-items.