Applies to
RibbonCategoryItem, RibbonSmallButtonItem, RibbonLargeButtonItem, and RibbonMenuItem controls
Description
The unique identifier of the ribbon item (including RibbonCategoryItem, RibbonSmallButtonItem, RibbonLargeButtonItem, and RibbonMenuItem) that is converted from the menu item. It is by default the same value as the Name property of the original menu item. This property value associates the ribbon item with the menu item, so that the events of the menu item will be triggered successfully after conversion. You might want to use this property value only when you want to associate a ribbon item with a menu item, for example, when you create a ribbon item and want to trigger the event of a menu item, you can associate the menu item with the ribbon item by setting the Name property value of the menu item as the value of the MenuItemName property of the ribbon item.
Note
This property is valid only when the RibbonBar is converted from the menu (when DisplayMenuAsRibbonBar is selected). The standalone ribbon item control does not support this property.
Usage
In scripts
This statement associates the rbb_lb_1 control with the menu item named "newmenu":
rbb_lb_1.MenuItemName = "newmenu"