Office.HostType enum
Spécifie l’application Office dans laquelle le complément s’exécute.
Remarques
Important : dans Outlook, cette énumération est disponible à partir de l’ensemble de conditions requises pour la boîte aux lettres 1.5.
Exemples
const contextInfo = Office.context.diagnostics;
const hostType: Office.HostType = contextInfo.host;
console.log("Office application: " + hostType);
Champs
| Access | L’application Office est Microsoft Access. |
| Excel | L’application Office est Microsoft Excel. |
| OneNote | L’application Office est Microsoft OneNote. |
| Outlook | L’application Office est Microsoft Outlook. |
| PowerPoint | L’application Office est Microsoft PowerPoint. |
| Project | L’application Office est Microsoft Project. |
| Word | L’application Office est Microsoft Word. |