Office.HostType enum
Specifies the Office application in which the add-in is running.
Remarks
Important: In Outlook, this enum is available from Mailbox requirement set 1.5.
Examples
const contextInfo = Office.context.diagnostics;
const hostType: Office.HostType = contextInfo.host;
console.log("Office application: " + hostType);
Fields
Access | The Office application is Microsoft Access. |
Excel | The Office application is Microsoft Excel. |
OneNote | The Office application is Microsoft OneNote. |
Outlook | The Office application is Microsoft Outlook. |
PowerPoint | The Office application is Microsoft PowerPoint. |
Project | The Office application is Microsoft Project. |
Word | The Office application is Microsoft Word. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins