Export (0) Print
Expand All

Body object (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

Represents the body of an appointment or message. This object was introduced in version 1.1.

Last modified: June 26, 2014

Applicable Outlook modes

Compose

Available in requirement sets

Mailbox

Office.context.mailbox.item.body;

Methods

Method name

Outlook mode

Description

Introduced in

getTypeAsync

Compose

Gets a value that indicates whether the content is in HTML or text format.

Version 1.1

prependAsync

Compose

Adds the specified content to the beginning of the body.

Version 1.1

setSelectedDataAsync

Compose

Replaces the selection in the body with the specified text.

Version 1.1

The Body object provides methods for adding and updating the content of the message or appointment. It is returned in the body property of the selected item.

App types

Mail app

Supported clients

Outlook 2013 SP1, Outlook 2013 RT, Outlook Web App, and OWA for Devices

Library

Office.js

Namespace

Office

Show:
© 2014 Microsoft