Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Getting Started Programming VSTO Add-ins

Getting Started Programming VSTO Add-ins

You can use VSTO Add-ins to automate Microsoft Office applications, extend features of the application, and customize the user interface (UI) of the application. For information about how VSTO Add-ins compare to other types of Office solutions you can create by using Visual Studio, see Office Solutions Development Overview (VSTO).

Applies to: The information in this topic applies to VSTO add-in projects. For more information, see Features Available by Office Application and Project Type.

Create VSTO Add-in projects by using one of the VSTO Add-in project templates in the New Project dialog box. These templates include required assembly references and project files. Visual Studio provides VSTO Add-in project templates for most applications in Office.

For more information about how to create a VSTO Add-in project, see How to: Create Office Projects in Visual Studio. For more information about the project templates, see Office Project Templates Overview.

When you create an VSTO Add-in project, Visual Studio automatically creates a ThisAddIn.vb (in Visual Basic) or ThisAddIn.cs (in C#) code file. This file contains the ThisAddIn class, which provides the foundation for your VSTO Add-in. You can use members of this class to run code when the VSTO Add-in is loaded or unloaded, to access the object model of the host application, and to extend features of the application. For more information, see Programming VSTO Add-Ins.

The object models of Microsoft Office applications expose many types that you can program against in a VSTO Add-in. You can use these types to automate the application. For example, you can programmatically create and send an e-mail message in Outlook, or you can open a document and add content in Word. For more information about how to access the object model of the host application in code, see Programming VSTO Add-Ins.

For more information about the object models of specific Microsoft Office applications, see the following topics:

There are several different ways to customize the UI of the host application by using an VSTO Add-in:

For more information about how to customize the UI of Microsoft Office applications, see Office UI Customization.

To learn how to create VSTO Add-ins, see the following walkthroughs:

These walkthroughs introduce you to the Office development tools in Visual Studio and the programming model for VSTO Add-ins.

For a list of topics that walk you through some of the common tasks in Office projects, see Common Tasks in Office Programming.

Show:
© 2015 Microsoft