Office.DocumentMode enum
Specifies whether the document in the associated application is read-only or read-write.
Remarks
Returned by the mode property of the Document object.
Examples
const mode : Office.DocumentMode = Office.context.document.mode;
console.log("Document mode: " + mode);
Fields
ReadOnly | The document is read-only. |
ReadWrite | The document can be read and written to. |