次の方法で共有


Documents Interface

A collection of all the Document objects that are currently open in Word.

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

Syntax

'Declaration
<GuidAttribute("0002096C-0000-0000-C000-000000000046")> _
Public Interface Documents _
    Inherits IEnumerable
'Usage
Dim instance As Documents
[GuidAttribute("0002096C-0000-0000-C000-000000000046")]
public interface Documents : IEnumerable

Remarks

Use the Documents property to return the Documents collection.

Use the Add method to create a new empty document and add it to the Documents collection.

Use the Open method to open a file.

Use Documents(index), where index is the document name or index number to return a single Document object.

The index number represents the position of the document in the Documents collection.

See Also

Reference

Documents Members

Microsoft.Office.Interop.Word Namespace