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: Basic API call (TypeScript) (2) | |
description: Performs a basic Word API call using TypeScript. | |
host: WORD | |
api_set: {} | |
script: | |
content: > | |
document.getElementById("run").addEventListener("click", () => | |
tryCatch(run)); | |
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: Get, set, load, and save shapes | |
description: Get and set one or more selected shapes. Load and save one or more shapes. | |
host: POWERPOINT | |
api_set: {} | |
script: | |
content: | | |
$("#getSelectedShapes").on("click", () => tryCatch(getSelectedShapes)); | |
async function getSelectedShapes() { | |
// Gets the shapes you selected on the slide and displays their IDs on the task pane. |
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: Get File Content | |
description: Gets the file content of presentation in compressed format | |
host: POWERPOINT | |
api_set: {} | |
script: | |
content: > | |
$("#run").click(() => tryCatch(run)); | |
const run: Function = async () => { |
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: Get File Content | |
description: Gets the file content of presentation in compressed format | |
host: POWERPOINT | |
api_set: {} | |
script: | |
content: > | |
$("#run").click(() => tryCatch(run)); | |
const run: Function = async () => { |
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: Custom document properties | |
description: Adds and reads custom document properties of different types. | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#read").click(() => tryCatch(readCustomDocumentProperties)); | |
async function readCustomDocumentProperties() { | |
await Word.run(async (context) => { |
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: 'Get, set, load, and save slides' | |
description: Get and set one or more selected slides. Load and save one or more slides. | |
host: POWERPOINT | |
api_set: {} | |
script: | |
content: | | |
$("#getSelectedSlides").click(() => tryCatch(getSelectedSlides)); | |
$("#setSelectedSlides").click(() => tryCatch(setSelectedSlides)); | |
$("#deleteSlides").click(() => tryCatch(deleteSlides)); | |
$("#saveSlideSelection").click(() => tryCatch(saveSlideSelection)); |