次の方法で共有


Documents インターフェイス

更新 : 2007 年 11 月

環境内のすべての Document オブジェクトが含まれます。各オブジェクトは、開いているドキュメントを表します。

名前空間 :  EnvDTE
アセンブリ :  EnvDTE (EnvDTE.dll 内)

構文

'宣言
<GuidAttribute("9E2CF3EA-140F-413E-BD4B-7D46740CD2F4")> _
Public Interface Documents _
    Implements IEnumerable
'使用
Dim instance As Documents
[GuidAttribute("9E2CF3EA-140F-413E-BD4B-7D46740CD2F4")]
public interface Documents : IEnumerable
[GuidAttribute(L"9E2CF3EA-140F-413E-BD4B-7D46740CD2F4")]
public interface class Documents : IEnumerable
public interface Documents extends IEnumerable

解説

このコレクションを参照するには、DTE.Documents を使用します。

Sub DocumentsExample()
   ' Closes all saved documents.
   Dim iDoc As Integer
   For iDoc = 1 To DTE.Documents.Count
      If DTE.Documents.Item(iDoc).Saved Then
         DTE.Documents.Item(iDoc).Close()
      End If
   Next iDoc
End Sub

参照

参照

Documents メンバ

EnvDTE 名前空間

Document