Description
Determines the total number of the recent menu items in the application menu.
Applies to
Syntax
controlname.GetRecentItemCount ()
Return value
Long.
Returns the total number of menu items in the recent menu. If the recent menu contains no items, returns 0. If an error occurs, returns -1.
Usage
The recent menu can have only one level and can contain no more than 9 items.
Examples
This example inserts three recent menu items and then counts the total number of recent menu items (which returns 3).
Long ll_Return, ll_Count RibbonApplicationMenu lr_AppMenu ll_Return = lr_AppMenu.InsertRecentItem(1,"RecentMenu2","Ue_RecentItem2Clicked") ll_Return = lr_AppMenu.InsertRecentItemFirst("RecentMenu1","Ue_RecentItem1Clicked") ll_Return = lr_AppMenu.InsertRecentItemLast("RecentMenu3","Ue_RecentItem3Clicked") ll_Count = lr_AppMenu.GetRecentItemCount()
See also