Delen via


Word Template 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

  • Document-level projects

Microsoft Office version

  • Word 2007

  • Word 2003

For more information, see Features Available by Application and Project Type.

The Microsoft Office Word template node in Solution Explorer does not have a code file or a design surface. The Word template node serves only as a container for the document code files and designers.

If you right-click the Word template node in Solution Explorer, you can rename the template by using the shortcut menu. This renames the template in the project folder. If the solution is closed and you rename the template 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 template 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.

Template vs. ThisDocument

The template node is a container for the code files and design surfaces of the document. You cannot program against the template 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.

See Also

Concepts

Office Documents in the Visual Studio Environment Overview

Document vs. Template Files