InitializationReason Enumeration (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

Specifies whether the app was just inserted or was already contained in the document.

Last modified: June 12, 2014

Office.InitializationReason

Values

Enumeration

Value

Description

Office.InitializationReason.Inserted

"inserted"

The appwas just inserted into the document.

Office.InitializationReason.DocumentOpened

"documentOpened"

The appis already part of the document that was opened.

App types

Content apps, Task pane apps

Supported clients

Excel 2013, Excel 2013 SP1, Excel 2013 RT, Excel Online, Word 2013, Word 2013 SP1, Word 2013 RT, Project Professional 2013, and Project 2013

Library

Office.js

Namespace

Office

Show:
© 2014 Microsoft