Window2::ProjectItem Property
Visual Studio 2015
Gets the ProjectItem object associated with the Window object.
Assembly: EnvDTE80 (in EnvDTE80.dll)
Implements
Window::ProjectItemThis example makes a text file the active window. It then uses it to iterate through the windows collection and to display the name of the project item for the window.
Before running this example, open a project in Visual Studio and add a text file named "TextFile1.txt" to it.
Show: