DocumentMode enumeration (JavaScript API for Office v1.1)

Specifies whether the document in associated application is read-only or read-write.

Last modified: June 12, 2014

Office.DocumentMode

Values

Enumeration

Value

Description

Office.DocumentMode.ReadOnly

"readOnly"

The document is read-only.

Office.DocumentMode.ReadWrite

"readWrite"

The document can be read and written to.

Returned by the mode property of the Document object.

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 SP1

Library

Office.js

Namespace

Office

Show:
© 2015 Microsoft