使用外掛程式為 Google 簡報增添更多功能
Google 簡報是一款雲端簡報解決方案,提供即時協作功能和強大工具,讓您快速建立自訂簡報。
您可以使用外掛程式擴充 Google 簡報,協助使用者建立新簡報、建立與第三方系統的連線,以及將簡報資料與其他 Google Workspace 應用程式 (例如 Google 試算表) 整合。
您可以在 Google Workspace Marketplace 中查看其他人建立的 Google 簡報外掛程式。
建議做法
以下是 Google 簡報擴充功能的幾項功能:
簡報外掛程式是使用 Apps Script 建構。如要進一步瞭解如何使用 Apps Script 存取及管理 Google 簡報,請參閱「擴充 Google 簡報」。
簡報結構
Google 簡報是由多個頁面組成,每個頁面都包含多個元素,例如文字方塊和圖片。
Apps Script 幻燈片服務提供多個類別,用於代表幻燈片中的組織結構 (例如 Slide
和 Shape
)。您可以使用這些類別讀取及修改幻燈片資料和行為。
如要進一步瞭解 Google 簡報簡報的組織方式,請參閱「簡報結構」。
觸發條件
Apps Script 觸發事件可讓指令碼專案在符合特定條件時執行指定函式,例如開啟簡報或安裝外掛程式。
如要進一步瞭解可與幻燈片外掛程式搭配使用的觸發條件,以及使用時的限制,請參閱「外掛程式觸發條件」。
延伸閱讀
開發 Google 簡報外掛程式時,以下 Apps Script 指南可能會有所幫助:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-16 (世界標準時間)。
[null,null,["上次更新時間:2025-02-16 (世界標準時間)。"],[[["Google Slides is a cloud-based presentation tool with real-time collaboration and robust features for creating custom presentations."],["Slides add-ons enhance Google Slides by allowing users to build presentations, connect to external systems, and integrate with other Google Workspace apps."],["Developers can utilize Apps Script and the Slides service to programmatically read, edit, format, and visualize Google Slides presentations."],["Apps Script triggers can automate tasks within Google Slides by executing specific functions when predefined events occur, like opening a presentation."],["Google provides comprehensive documentation and guides to support developers in building and extending Google Slides functionality with add-ons."]]],["Google Slides add-ons, built with Apps Script, extend Slides' functionality. Key actions include reading, editing, visualizing, and formatting slides using Apps Script's Slides service or the Google Slides API. Developers can create custom menus, dialogs, and sidebars with HTML and CSS, and set up triggers for specific events. Add-ons interact with presentation elements like slides and shapes, modifying data and behavior, with the option to install from the Google Workspace Marketplace.\n"]]