Documents.SaveAll Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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