Office object (JavaScript API for Office v1.0)

JavaScript API for Office v1.0

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

Last modified: June 12, 2014

Office

Properties

Name

Description

context

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

Methods

Name

Description

select

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

useShortNamespace

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

Events

Name

Description

initialize

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

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

Supported clients

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

Library

Office.js

Namespace

Office

Show:
© 2014 Microsoft