Partilhar via


Documents.SaveAll Method

Definition

Saves all documents currently open in the environment.

public:
 void SaveAll();
public:
 void SaveAll();
void SaveAll();
[System.Runtime.InteropServices.DispId(6)]
public void SaveAll ();
[<System.Runtime.InteropServices.DispId(6)>]
abstract member SaveAll : unit -> unit
Public Sub SaveAll ()
Attributes

Examples

Sub SaveAllExample()  
    ' Create a text file or other document window.  
    Dim docs As Documents  
    Dim doc As Document  
    Dim win As Window  
    docs = documents  
    docs.SaveAll()  
    doc = dte.ActiveDocument  
    win = doc.NewWindow()  
    doc.Save("c:\temp\docsave.txt")  
    msgbox(doc.Selection().text)  
    docs.CloseAll(vsSaveChanges.vsSaveChangesPrompt)  
End Sub  

Applies to