Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RecentFile interface
Collapse the table of content
Expand the table of content

RecentFile interface

Represents a recently used file.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

[GuidAttribute("00020964-0000-0000-C000-000000000046")]
public interface RecentFile

The RecentFile object is a member of the RecentFiles collection. The RecentFiles collection includes all the files that have been used recently. The items in the RecentFiles collection are displayed at the bottom of the File menu.

Use RecentFiles(index), where index is the index number, to return a single RecentFile object. The index number represents the position of the file on the File menu.

Use the Add method to add a file to the RecentFiles collection.

The SaveAs and Open methods include an AddToRecentFiles argument that controls whether or not a file is added to the recently-used-files list when the file is opened or saved.

Show:
© 2015 Microsoft