0

我想知道幻灯片的哪些元素可以通过编程方式进行更改;了解正在发生的事情的一种方法是查看幻灯片背后的 JSON。我有幻灯片 ID,但除了标准的所见即所得编辑器之外,我还没有弄清楚如何以任何方式查看它。

4

1 回答 1

0

对于整个演示文稿,您可以查看此文档

JSON 表示

{
  "presentationId": string,
  "pageSize": {
    object(Size)
  },
  "slides": [
    {
      object(Page)
    }
  ],
  "title": string,
  "masters": [
    {
      object(Page)
    }
  ],
  "layouts": [
    {
      object(Page)
    }
  ],
  "locale": string,
  "revisionId": string,
  "notesMaster": {
    object(Page)
  },
}

对于每个页面,您可以参考REST 资源:presentations.pages

JSON 表示

{
  "objectId": string,
  "pageType": enum(PageType),
  "pageElements": [
    {
      object(PageElement)
    }
  ],
  "revisionId": string,
  "pageProperties": {
    object(PageProperties)
  },

  // Union field properties can be only one of the following:
  "slideProperties": {
    object(SlideProperties)
  },
  "layoutProperties": {
    object(LayoutProperties)
  },
  "notesProperties": {
    object(NotesProperties)
  },
  "masterProperties": {
    object(MasterProperties)
  },
  // End of list of possible types for union field properties.
}
于 2017-10-31T11:20:01.367 回答