Partager via


ApplicationSettings.RecentFilesListSize Property

Visio Automation Reference

Determines the number of entries in the list of recently used files at the bottom of the File menu in the Microsoft Office Visio user interface. Read/write.

Version Information
 Version Added:  Visio 2003

Syntax

expression.RecentFilesListSize

expression   A variable that represents an ApplicationSettings object.

Return Value
Long

Remarks

Setting the RecentFilesListSize property is equivalent to setting the Recently used file list option on the General tab of the Options dialog box (Tools menu).

Maximum size of the recently used file list is 9 entries. Setting the RecentFilesListSize property to more than 9 entries does not display more than 9 files on the File menu.

Example

The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the RecentFilesListSize property to print the current size of the recently used file list in the Immediate window. It also shows how to get an ApplicationSettings object from the Visio Application object.

Visual Basic for Applications
  Public Sub RecentFileListSize_Example()
Dim vsoApplicationSettings As Visio.ApplicationSettings
Dim lngListSize As Long

Set vsoApplicationSettings = Visio.Application.Settings
lngListSize = vsoApplicationSettings.RecentFilesListSize

Debug.Print lngListSize

End Sub

See Also