Export (0) Print
Expand All

Documents Interface

Contains all Document objects in the environment, each representing an open document.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

public interface Documents : IEnumerable

Reference this collection by using 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
      End If
   Next iDoc
End Sub

Community Additions

© 2014 Microsoft