Export (0) Print
Expand All

Context object (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

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

Last modified: June 12, 2014

Introduced in Office.js version

1.0

Updated in Office.js version

1.1

Office.context

Properties

Name

Description

Updates for Office.js v1.1

contentLanguage

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

Added support for content apps for Access.

displayLanguage

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

Added support for content apps for Access.

document

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

Added support for content apps for Access.

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.

App types

Content apps, Mail apps, Task pane apps

Supported clients

Access app for SharePoint, Excel 2013, Excel 2013 SP1, Excel 2013 RT, Excel Online, Outlook 2013, Outlook 2013 SP1, Outlook 2013 RT, Outlook Web App, OWA for Devices, PowerPoint 2013, PowerPoint 2013 SP1, PowerPoint 2013 RT, Project 2013, Project 2013 SP1, Word 2013, Word 2013 SP1, Word 2013 RT

Library

Office.js

Namespace

Office

Show:
© 2014 Microsoft