Export (0) Print
Expand All

Context object (JavaScript API for Office v1.0)

Represents the runtime environment of the app and provides access to key objects of the API.

Last modified: November 24, 2014

Office.context

Properties

Name

Description

contentLanguage

Gets the locale (language) for data as it is stored in the document or item.

displayLanguage

Gets the locale (language) for the UI of the hosting application.

document

Gets an object that represents the document the content or task pane app is interacting with.

mailbox

Gets the mailbox object that provides access to members of the API that are specifically for mail apps.

roamingSettings

Gets an object that represents the saved custom settings of the app.

The Context object provides access to key objects in the JavaScript API for Office.

Supported clients

Excel 2013, Excel 2013 RT, Excel Online, Outlook 2013, Outlook 2013 RT, Outlook Web App, OWA for Devices, Outlook for Mac, PowerPoint 2013, PowerPoint 2013 RT, Project 2013, Word 2013, Word 2013 RT

Library

Office.js

Namespace

Office

Show:
© 2015 Microsoft