Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Reference
 Word Designer

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Studio Tools for the Microsoft Office System
Word Designer

Note Required applications

The features in this topic are available only if you have the required applications installed.

For more information, see Features Available by Product Combination.

  • One of these development environments:

    VSTO 2005

    -or-

    Visual Studio Team System

  • Microsoft Office 2003

When you create a Microsoft Office Word project, a document opens in Visual Studio. There is one design view for Microsoft Office Word documents, which is the document itself. You can design the look of the document while it is open in the designer using the normal Word tools. When you double-click the document surface, your cursor moves to that location as usual. Similarly, when you double-click a word, that word is selected. However, if the word is inside a host control, such as a Bookmark control, the code editor opens and the default event handler for the control is generated or opened if it already exists. For more information about host controls, see Host Items and Host Controls Overview.

Toolbars

Word toolbars appear inside the designer and are fully functional. The default set and layout of toolbars depends on how you have it set for Word.

Inside the Visual Studio environment:

  • You can float Word toolbars.

  • You can add and remove toolbars using the View menu or by right-clicking the toolbar in the designer.

  • You cannot dock Word toolbars into the Visual Studio set of toolbars.

  • You cannot customize toolbar layout within a toolbar group.

  • You cannot move toolbar commands into the menus.

There are two views in the designer: design view and code view.

Design View

Design view is the graphical view of the document and application. Word opens in the designer along with the document so that you can access the menus and toolbars and design the document without having to go outside of the Visual Studio environment. The Word menus are merged with the Visual Studio menus, but the toolbars are in the designer just above the document. For more information, see Office Menus in the Visual Studio Environment.

You can edit and modify a document using the native functionality of Word, for example, you can use the undo or the Find feature of Office just as you would when editing a Word document. You can also use the Visual Studio tool windows and editors to customize the document or workbook using managed code.

Code View

The code editor associated with the document in the designer is the same as the code editor you use to write code in a Windows Forms application. For more information, see Code and Text Editor.

See Also

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker