按 Office 应用程序和项目类型提供的功能Features available by Office application and project type

Visual Studio 具有几种类型的项目模板,它们支持 Microsoft Office 应用程序的不同业务方案,包括以下类型:Visual Studio has several types of project templates that support different business scenarios for Microsoft Office applications, including the following types:

  • 文档级自定义项。Document-level customizations.

  • VSTO 外接程序VSTO Add-ins.

    并非所有应用程序都可以使用所有项目类型。Not all applications can use every project type. 例如,文档级项目仅可用于 Microsoft Office Word 和 Microsoft Office Excel。For example, document-level projects are available only for Microsoft Office Word and Microsoft Office Excel. 同样,某些功能仅可用于特定类型的项目或应用程序。Similarly, some features are available only for certain types of projects or applications. 例如,操作窗格仅在文档级项目中可用,而功能区扩展仅可用于某些应用程序。For example, the actions pane is available only in document-level projects, and Ribbon extensions are available only for some applications. 有关不同的项目类型的详细信息,请参阅Office 解决方案开发概述(VSTO)For more information about the different project types, see Office solutions development overview (VSTO).

Note

Office 项目模板仅在 Visual StudioVisual Studio 的某些版本中可用。Office project templates are available only in some editions of Visual StudioVisual Studio. 有关详细信息,请参阅配置计算机以开发 Office 解决方案For more information, see Configure a computer to develop Office solutions.

可用的不同 Microsoft Office 应用程序的项目类型Project types available for different Microsoft Office applications

下表显示了可使用所有项目类型的应用程序。The following table shows the applications that you can use with each project type.

项目类型Project types Microsoft Office 应用程序Microsoft Office application
文档级自定义项Document-level customizations ExcelExcel

Word
VSTO 外接程序VSTO Add-ins ExcelExcel

InfoPath(仅 InfoPath 2013 和 InfoPath 2010)InfoPath (InfoPath 2013 and InfoPath 2010 only)

OutlookOutlook

PowerPointPowerPoint

项目Project

VisioVisio

Word

ExcelExcel

在不同的项目类型中可用的功能Features available in different project types

下表显示了提供每项功能的项目类型。The following table shows which project types provide each feature.

功能Feature 提供该功能的项目类型Project types that provide the feature 其他阅读材料Further reading
操作窗格。Actions pane. 文档级项目。Document-level projects. 操作窗格概述Actions pane overview
ClickOnce 部署。ClickOnce deployment. VS 与文档级项目。VS and document-level projects. 部署 Office 解决方案Deploy an Office solution
自定义任务窗格。Custom task panes. 以下应用程序的 VSTO 外接程序项目:VSTO Add-in projects for the following applications:

- Excel- Excel
-InfoPath (InfoPath 2013 和 InfoPath 2010 仅)- InfoPath (InfoPath 2013 and InfoPath 2010 only)
- Outlook- Outlook
- PowerPoint- PowerPoint
- Word- Word
自定义任务窗格Custom task panes
自定义 XML 部件。Custom XML parts. 文档级项目。Document-level projects.

以下应用程序的应用程序级项目:Application level projects for the following applications:

- Excel- Excel
- PowerPoint- PowerPoint
- Word- Word
自定义 XML 部件概述Custom XML parts overview
数据缓存。Data cache. 文档级项目。Document-level projects. 文档级自定义项中的缓存的数据Cached data in document-level customizations
公开 VSTO 外接程序中向其他 Microsoft Office 解决方案的对象。Expose an object in a VSTO Add-in to other Microsoft Office solutions. VSTO 外接程序项目。VSTO Add-in projects. 从其他 Office 解决方案调用 VSTO 外接程序中的代码Call code in VSTO Add-ins from other Office solutions
以下主机控件:The following host controls:

-图表- Chart
- ListObject- ListObject
- NamedRange- NamedRange
的内容控件- Content controls
书签- Bookmark
文档级项目。Document-level projects.

用于 Word 和 Excel 的 VSTO 外接程序项目。VSTO Add-in projects for Word and Excel.
主机项和主机控件概述Host items and host controls overview
以下主机控件:The following host controls:

- XMLMappedRange- XMLMappedRange
- XMLNode- XMLNode
- XMLNodes- XMLNodes
文档级项目。Document-level projects. 主机项和主机控件概述Host items and host controls overview
多项目部署。Multi-project deployment. 文档级项目。Document-level projects.

VSTO 外接程序项目。VSTO Add-in projects.
演练:部署在单个 ClickOnce 安装程序中的多个 Office 解决方案Walkthrough: Deploy multiple Office solutions in a single ClickOnce installer
Outlook 窗体区域。Outlook form regions. 用于 Outlook 的 VSTO 外接程序项目。VSTO Add-in projects for Outlook. 创建 Outlook 窗体区域Create Outlook form regions
部署后操作。Post-deployment actions. 文档级项目。Document-level projects.

VSTO 外接程序项目。VSTO Add-in projects.
演练:在安装 ClickOnce 后将文档复制到最终用户计算机Walkthrough: Copy a document to the end user computer after a ClickOnce installation
功能区自定义。Ribbon customizations. 文档级项目。Document-level projects.

以下应用程序的 VSTO 外接程序项目:VSTO Add-in projects for the following applications:

- Excel- Excel
-InfoPath (InfoPath 2013 和 InfoPath 2010 仅)- InfoPath (InfoPath 2013 and InfoPath 2010 only)
- Outlook- Outlook
- PowerPoint- PowerPoint
- Project- Project
- Visio- Visio
- Word- Word
功能区概述Ribbon overview
可视化文档设计器。Visual document designer. 文档级项目。Document-level projects. 在 Visual Studio 环境中的 office 项目Office projects in the Visual Studio environment

请参阅See also