Word Document Node
Applies to |
---|
The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office. Project type
Microsoft Office version
For more information, see Features Available by Application and Project Type. |
The Microsoft Office Word document node in Solution Explorer does not have a code file or a design surface. The Word document node serves only as a container for the document code files and designers.
If you right-click the Word document node in Solution Explorer, you can rename the document by using the shortcut menu. This renames the document in the project folder. If the solution is closed and you rename the document in the project folder by using Windows Explorer, Visual Studio will show the updated name the next time you open the solution. If the solution is open and you rename the document in the project folder by using Windows Explorer, the name change will not show up in Solution Explorer until you close and reopen the solution.
Document vs. ThisDocument Host Item
The document node is a container for the code files and design surface of the document host item. You cannot program against the document node.
ThisDocument (ThisDocument.vb or ThisDocument.cs) represents the document that you can program against; it has a code file and a designer, and it exposes events. For more information, see Document Host Item.