Export (0) Print
Expand All

Office object (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

Represents an instance of an app, which provides access to the top-level objects of the API.

Last modified: November 24, 2014

Office

Properties

Name

Description

Updates for Office.js v1.1

context

Gets the Context object that represents the runtime environment of the app and provides access to the top-level objects of the API.

Added support for getting the runtime context in content apps for Access.

cast.item

Provides IntelliSense in Visual Studio specific to compose or read mode messages and appointments.

Note Note

Only applicable at design time when developing mail apps in Visual Studio.

Methods

Name

Description

Updates for Office.js v1.1

select

Creates a promise to return a binding based on the selector string passed in.

Added support for selecting table bindings in content apps for Access.

useShortNamespace

Toggles on and off the Office alias for the full Microsoft.Office.WebExtension namespace.

Added support for content apps for Access.

Events

Name

Description

Updates for Office.js v1.1

initialize

Occurs when the runtime environment is loaded and the app is ready to start interacting with the application and hosted document.

Added support for initialization in content apps for Access.

The Office object enables the developer to implement a callback function for the Initialize event and provides access to the Context object.

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, Outlook for Mac, 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