JavaScript API for Office
Published: February 26, 2013
The JavaScript API for Office includes objects, methods, properties, events, and enumerations that can be used in apps for Office created for the Office 2013 versions of Word, Excel, Outlook, PowerPoint, Project Standard, and Project Professional.
The Microsoft.Office.WebExtension namespace (which by default is referenced using the alias Office in code) contains objects that provide functionality for working with apps and content in Office documents, worksheets, presentations, mail items, and projects programmatically. This API reference documents those objects and their members.
Download the JavaScript API for Office wall poster.
|
Object |
Supported app type |
Supported host applications |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parent topic |
Supported app type |
Supported host applications |
|---|---|---|
|
See child enumeration topics for details. |
See Requirements in enumeration topic for details. |
The Office.js file provides the core scripting functionality for apps in the Office 2013 applications and instantiates objects in the Project-15.js file. The Project 2013 SDK download also includes Office.js, Project-15.js, and related files for app development, and sample code for task pane apps for Project. For more information, see Task pane apps for Project.
Note
|
|---|
|
For Project 2013, apps use both Office.js and Project-15.js. |
Project 2013 does not support the following objects or members in Office.js:
-
Binding object
-
Bindings object
-
The following CoercionType values are not supported for the getSelectedDataAsync method: Html, Matrix, Ooxml, or Table
-
CustomXmlNode object
-
CustomXmlPart object
-
CustomXmlParts object
-
CustomXmlPrefixMappings object
-
Document.SelectionChanged event
-
Document.setSelectedData method
-
Settings object
|
Supported clients |
See "Supported host applications" in the Objects table for details about support for each object in the JavaScript API for Office. |
|
Library |
Office.js |
|
Namespace |
Office |
Note