Edit

Share via


RecentFiles Interface

Definition

A collection of RecentFile objects that represents the files that have been used recently. The items in the RecentFiles collection are displayed at the bottom of the File menu.

public interface class RecentFiles : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020963-0000-0000-C000-000000000046")]
public interface RecentFiles : System.Collections.IEnumerable
type RecentFiles = interface
    interface IEnumerable
Public Interface RecentFiles
Implements IEnumerable
Attributes
Implements

Remarks

Use the RecentFiles property to return the RecentFiles collection.

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

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.

The SaveAs(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) and Open(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) 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.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Count

Returns the number of items in the specified collection.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Int32]

Returns an individual object in a collection.

Maximum

Returns or sets the maximum number of recently used files that can appear on the File menu. Can be a number from 0 (zero) through 9.

Parent

Returns an object that represents the parent object of the specified object.

Methods

Add(Object, Object)

Returns a RecentFile object that represents a file added to the list of recently used files.

GetEnumerator()

Applies to