property Item.CloseOnClick as CloseOnClickEnum
Specifies the way the owner menu is closed once the user clicks the item.

TypeDescription
CloseOnClickEnum A CloseOnClickEnum expression that determines the way the hosting menu is closed when the user clicks the item.
By default, the CloseOnClick property is inherited by the control's CloseOnClick property. You can specify a different way of closing the current item by specifying a different value for Item's CloseOnClick property. Setting the CloseOnClick property on a negative value, resets that Item's CloseOnClick property, so closing the item  when clicking the items is specified by the control's CloseOnClick property. For instance, you can specify the Item's CloseOnClick property on exCloseOnClickOutside, for items of button type, so the hosting menu won't be closed when the user clicks the button, and so the user can click multiple times the item without closing the menu. The ShowAsButton property indicates whether the item should look as a button. The ShowLocalPopup property specifies whether the item's popup is shown as local. Clicking any item inside a local popup makes the popup itself to close including all its descendent sub-menus, without closing any ascendant sub-menus.