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. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins