Window2::Close Method (vsSaveChanges)
Visual Studio 2015
Closes the open document and optionally saves it, or closes and destroys the window.
Assembly: EnvDTE80 (in EnvDTE80.dll)
Parameters
- SaveChanges
-
Type:
EnvDTE::vsSaveChanges
Optional. A vsSaveChanges constant that determines whether to save an item or items.
Implements
Window::Close(vsSaveChanges)This example makes a text file the active window. It then uses it to iterate through the windows collection to display a number of properties, and it then closes the window object.
Before running this example, open a project in Visual Studio, add a text file named "TextFile1.txt" to it, and make it the active window.
Show: