Office.HostType enum
指定在其中运行加载项的 Office 应用程序。
注解
重要提示:在 Outlook 中,此枚举从邮箱要求集 1.5 开始可用。
示例
const contextInfo = Office.context.diagnostics;
const hostType: Office.HostType = contextInfo.host;
console.log("Office application: " + hostType);
字段
| Access | Office 应用程序Microsoft Access。 |
| Excel | Office 应用程序Microsoft Excel。 |
| OneNote | Office 应用程序Microsoft OneNote。 |
| Outlook | Office 应用程序Microsoft Outlook。 |
| PowerPoint | Office 应用程序Microsoft PowerPoint。 |
| Project | Office 应用程序Microsoft Project。 |
| Word | Office 应用程序Microsoft Word。 |