RecentFiles.Add Method
Returns a RecentFile object that represents a file added to the list of recently used files.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function Add ( _
ByRef Document As Object, _
ByRef ReadOnly As Object _
) As RecentFile
'Usage
Dim instance As RecentFiles
Dim Document As Object
Dim ReadOnly As Object
Dim returnValue As RecentFile
returnValue = instance.Add(Document, ReadOnly)
RecentFile Add(
ref Object Document,
ref Object ReadOnly
)
Parameters
- Document
Type: System.Object%
Required Object. The document you want to add to the list of recently used files. You can specify this argument by using either the string name for the document or a Document object.
- ReadOnly
Type: System.Object%
Optional Object. True to make the document read-only.
Return Value
Type: Microsoft.Office.Interop.Word.RecentFile