Type Property (MenuItem object)

Read-only. An Integer type property. Returns the type of the menu item.

Applies to: MenuItem object

Syntax

[[Let] typeRet = ] object.Type

The Type property syntax has these parts:

Part Description
object Required. An expression that returns a MenuItem object.
typeRet Optional. An Integer type value.

Remarks

The menu item type is set only once when the menu item is created. The Type property can take the following values:

Value Constant Description
0 cdMenuItemNormal A normal menu item, which doesn't contain a submenu and is not a separator.
1 cdMenuItemSeparator A separator - the line that separates two menu items. For this type of menu item the Caption property doesn't matter because the menu item is displayed as a line.
2 cdMenuItemPopup A menu item that contains a submenu.