在 Visual Studio) 中 (Office 開發的受控參考Managed reference (Office development in Visual Studio)

本節包含命名空間的應用程式開發介面參考文件,和用在目標為 .NET Framework 4.NET Framework 4.NET Framework 4.5.NET Framework 4.5之 Office 專案中的類型。This section contains API reference documentation for namespaces and types that are used in Office projects that target the .NET Framework 4.NET Framework 4 or the .NET Framework 4.5.NET Framework 4.5. 如需有關以 .NET Framework 3.5 為目標的 Office 專案所使用之命名空間和類型的 API 參考檔,請參閱 Visual Studio 檔中的下列參考章節: Visual Studio) 中 (Office 開發的 Managed 參考 For API reference documentation about the namespaces and types that are used in Office projects that target the .NET Framework 3.5, see the following reference section in the Visual Studio documentation: Managed reference (Office development in Visual Studio).

注意

有興趣開發跨多個平臺擴充 Office 體驗的解決方案嗎?Interested in developing solutions that extend the Office experience across multiple platforms? 查看新的 Office 增益集模型Check out the new Office Add-ins model. 相較于 VSTO 增益集和方案,Office 增益集的使用量較小,而且您可以使用幾乎任何 web 程式設計技術(例如 HTML5、JavaScript、CSS3 和 XML)來建立這些增益集。Office Add-ins have a small footprint compared to VSTO Add-ins and solutions, and you can build them by using almost any web programming technology, such as HTML5, JavaScript, CSS3, and XML.

本節內容In this section

Microsoft.Office.Tools

包含程式設計 Office 解決方案的常見類別。Contains classes common to programming Office solutions. 包括 VSTO 增益集的基底類別、在 VSTO 增益集中建立自訂工作窗格的類別、在 Excel 和 Word 解決方案中建立智慧標籤的類別,以及在文件層級自訂中建立執行窗格的類別。These include the base class for VSTO Add-ins, classes for creating custom task panes in VSTO Add-ins, classes for creating smart tags in Excel and Word solutions, and classes for creating actions panes in document-level customizations.

Microsoft.Office.Tools.Excel

包含可用於 Excel 解決方案的主控制項和主項目。Contains host controls and host items that can be used in solutions for Excel.

Microsoft.Office.Tools.Excel.Controls

包含可用於 Excel 解決方案的 Excel 控制項和 Windows Form 控制項。Contains Excel controls and Windows Forms controls that can be used in solutions for Excel.

Microsoft.Office.Tools.Outlook

包含 Outlook VSTO 增益集使用的類別,包括用來建立自訂表單區域的類別。Contains classes used by VSTO Add-ins for Outlook, including classes that are used to create custom form regions.

Microsoft.Office.Tools.Ribbon

包含用於以程式設計方式修改功能區自訂項目的類別,這些功能區自訂項目是使用功能區設計工具所建立。Contains classes that are used to programmatically modify Ribbon customizations created by using the Ribbon designer.

Microsoft.Office.Tools.Word

包含可用於 Word 解決方案的主控制項和主項目。Contains host controls and host items that can be used in solutions for Word.

Microsoft.Office.Tools.Word.Controls

包含可用於 Word 解決方案的 Word 控制項和 Windows Forms 控制項。Contains Word controls and Windows Forms controls that can be used in solutions for Word.

Microsoft.VisualStudio.Tools.Applications

包含 ServerDocument 類別和一組相關的快取資料類別。Contains the ServerDocument class and a set of related cached data classes. 在沒有安裝 Microsoft Office 的電腦上,這些類別可以用來修改文件層級自訂的某些層面。These classes can be used to modify some aspects of document-level customizations on computers that do not have Microsoft Office installed.

Microsoft.VisualStudio.Tools.Applications.Deployment

包含 IAddInPostDeploymentAction 介面 (可實作來建立 Office 解決方案的 部署後動作 )、在安裝 Office 解決方案時可能會擲回的例外狀況,以及其他屬於 Visual Studio 基礎結構的應用程式開發介面。Contains the IAddInPostDeploymentAction interface (which you can implement to create a post deployment action for an Office solution), exceptions that can be thrown when installing an Office solution, and other APIs that are part of the Visual Studio infrastructure.

Microsoft.VisualStudio.Tools.Applications.Runtime

包含可由 Visual Studio Tools for Office RuntimeVisual Studio Tools for Office runtime擲回的大部分例外狀況,可以用來快取文件層級自訂項目資料的數種類別,以及其他屬於 Visual Studio 基礎結構的應用程式開發介面。Contains most of the exceptions that can be thrown by the Visual Studio Tools for Office RuntimeVisual Studio Tools for Office runtime, several classes that can be used to cache data in document-level customizations, and other APIs that are part of the Visual Studio infrastructure.

Microsoft.VisualStudio.Tools.Office.BuildTasks

包含用於建置 Office 專案的 MSBuild 工作類別。Contains MSBuild task classes that are used to build Office projects.

另請參閱See also