Interface Documents
Contém Tudo objetos de Document no ambiente, cada representando um Abrir documento.
Namespace: EnvDTE
Assembly: EnvDTE (em EnvDTE. dll)
Sintaxe
<GuidAttribute("9E2CF3EA-140F-413E-BD4B-7D46740CD2F4")> _
Public Interface Documents _
Inherits 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
Comentários
Referência a esta coleção usando DTE.Documents.
Exemplos
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