This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Read and write from document settings | |
| description: >- | |
| Small Office.js sample for reading and writing | |
| Office.context.document.settings. | |
| host: POWERPOINT | |
| api_set: {} | |
| script: | |
| content: | | |
| Office.onReady(() => { | |
| document.getElementById("writeButton").addEventListener("click", writeSetting); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Read-only context.sync in a loop | |
| description: '' | |
| host: POWERPOINT | |
| api_set: {} | |
| script: | |
| content: > | |
| Office.onReady(() => | |
| document.getElementById("run").addEventListener("click", async () => { | |
| console.log("launch one loop"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Diagnostics; | |
| using System.Windows; | |
| using System.Windows.Controls; | |
| using System.Windows.Media; | |
| using System.Windows.Shapes; | |
| namespace ColorPicker | |
| { | |
| /// <summary> |