Window2::ProjectItem Property

 

Gets the ProjectItem object associated with the Window object.

Namespace:   EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

property ProjectItem^ ProjectItem {
	ProjectItem^ get();
}

Property Value

Type: EnvDTE::ProjectItem^

A ProjectItem object.

This 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.

No code example is currently available or this language may not be supported.
Return to top
Show: