JavaScript API for Office

JavaScript API for Office

Office Add-ins

Last modified: December 15, 2015

The JavaScript API for Office includes objects, methods, properties, events, and enumerations that you can use in your Office Add-ins code.

The Microsoft.Office.WebExtension namespace (which by default is referenced using the alias Office in code) contains objects you can use to write script that interacts with content in Office documents, worksheets, presentations, mail items, and projects from your Office Add-ins.

Object

Supported add-in type

Supported host applications

AsyncResult

  • Content add-in

  • Outlook add-in

  • Task pane add-in

  • Access

  • Excel

  • Outlook

  • PowerPoint

  • Project

  • Word

AttachmentDetails

  • Outlook add-in

  • Outlook

Binding

  • Content add-in

  • Task pane add-in

  • Access

  • Excel

  • Word

Bindings

  • Content add-in

  • Task pane add-in

  • Access

  • Excel

  • Word

Body

  • Outlook add-in

  • Outlook

Contact

  • Outlook add-in

  • Outlook

Context

  • Content add-in

  • Outlook add-in

  • Task pane add-in

  • Access

  • Excel

  • Outlook

  • PowerPoint

  • Project

  • Word

CustomProperties

  • Outlook add-in

  • Outlook

CustomXmlNode

  • Task pane add-in

  • Word

CustomXmlPart

  • Task pane add-in

  • Word

CustomXmlParts

  • Task pane add-in

  • Word

CustomXmlPrefixMappings

  • Task pane add-in

  • Word

Diagnostics

  • Outlook add-in

  • Outlook

Document

  • Content add-in

  • Task pane add-in

  • Access

  • Excel

  • PowerPoint

  • Project

  • Word

EmailAddressDetails

  • Outlook add-in

  • Outlook

EmailUser

  • Outlook add-in

  • Outlook

Entities

  • Outlook add-in

  • Outlook

Error

  • Content add-in

  • Outlook add-in

  • Task pane add-in

  • Access

  • Excel

  • Outlook

  • PowerPoint

  • Project

  • Word

File

  • Task pane add-in

  • PowerPoint

  • Word

Item

  • Outlook add-in

  • Outlook

Location

  • Outlook add-in

  • Outlook

Mailbox

  • Outlook add-in

  • Outlook

MeetingSuggestion

  • Outlook add-in

  • Outlook

MatrixBinding

  • Content add-in

  • Task pane add-in

  • Excel

  • Word

MeetingSuggestion

  • Outlook add-in

  • Outlook

Office

  • Content add-in

  • Outlook add-in

  • Task pane add-in

  • Access

  • Excel

  • Outlook

  • PowerPoint

  • Project

  • Word

PhoneNumber

  • Outlook add-in

  • Outlook

ProjectDocument

  • Task pane add-in

  • Project

Recipients

  • Outlook add-in

  • Outlook

RoamingSettings

  • Outlook add-in

  • Outlook

Settings

  • Content add-in

  • Task pane add-in

  • Access

  • Excel

  • PowerPoint

  • Word

Slice

  • Task pane add-in

  • PowerPoint

  • Word

  • Word Online

Subject

  • Outlook add-in

  • Outlook

TableBinding

  • Content add-in

  • Task pane add-in

  • Access

  • Excel

  • Word

TableData

  • Content add-in

  • Task pane add-in

  • Access

  • Excel

  • Word

TaskSuggestion

  • Outlook add-in

  • Outlook

TextBinding

  • Content add-in

  • Task pane add-in

  • Excel

  • Word

Time

  • Outlook add-in

  • Outlook

UserProfile

  • Outlook add-in

  • Outlook

Parent topic

Supported add-in type

Supported host applications

Enumerations

See child enumeration topics for details.

See Requirements in enumeration topic for details.

To view the JavaScript API for Office organized by the subsets of the API that support each add-in type, see

API

Description

Shared API

The subset of the API that you can use in all three types of Office Add-ins: content, task pane, and Outlook add-ins.

Document API

The subset of the API that you can use in the two types of Office Add-ins associated with documents: content and task pane add-ins.

Mailbox API

The subset of the API that you can use in Outlook add-ins.

Supported hosts

  • Access

  • Excel

  • Outlook

  • PowerPoint

  • Project

  • Word

Note Note

See the Supported host applications column in the Objects table for details about support for each object in the JavaScript API for Office.

Library

Office.js

Namespace

Office

Show:
© 2016 Microsoft