Office.DocumentMode enum
Specifies whether the document in the associated application is read-only or read-write.
Returned by the mode property of the Document object.
const mode : Office.DocumentMode = Office.context.document.mode;
console.log("Document mode: " + mode);
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 feedback
Office Add-ins is an open source project. Select a link to provide feedback: