CreateRecentFileListItems Method
Description
Creates an Office 2010 style recent file list.
Syntax
Public Sub CreateRecentFileListItems( _
ByVal RecentFileList As RecentFileList _
)
Parameters
- RecentFileList: Reference to the RecentFileList to populate the list box.
Remarks
CreateRecentFileListItems will turn the backstage list box into an Office 2010 style recent file list. Each RecentFileListItem from the supplied RecentFileList will now have a corresponding CommandBarGalleryItem added to the backstage list box's Items collection.
Office 2010 style list using the Office 2010 style BackstageListBox to display the RecentFileList:
Dim RecentFileList As RecentFileList
RecentFileListBox.ToolTipContext.Style = xtpToolTipResource
CommandBars.RecentFileList.Add "C:\Program Files\Test1.xml"
CommandBars.RecentFileList.Add "C:\Program Files\Test2.xml"
RecentFileListBox.CreateRecentFileListItems RecentFileList
See RecentFileListItem for more information about items in the RecentFileList.

See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.