演示文稿的结构
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本指南介绍了构成 Google 幻灯片演示的数据类型。如需详细了解页面、页面元素及其属性,请参阅 Google Slides API 文档的相应部分。
Google 幻灯片 Presentation
由多个页面组成。
一个 Page
可以包含一个或多个页面元素。

网页类型
演示文稿可以包含各种不同类型的页面。Page
可以是以下类型之一:
页面元素类型
网页上的每个 PageElement
可以是以下类型之一:
页面元素类型 |
说明 |
Shape |
纯视觉对象,例如矩形、椭圆和文本框。形状可以包含文字,因此是制作幻灯片最常用的页面元素。 |
Line |
视觉线条、曲线或连接器。 |
Image |
导入到 Google 幻灯片中的图形。 |
SheetsChart |
从 Google 表格导入到 Google 幻灯片中的图表。 |
Video |
导入到 Google 幻灯片中的视频。 |
Table |
内容网格。 |
WordArt |
一种行为更像形状的视觉文本元素。 |
Group |
一组被视为单个单元的网页元素。您可以同时移动、缩放和旋转它们。 |
您可以更改某些网页元素的填充、边框和文字,从而修改这些元素的视觉外观。您还可以更改页面元素的大小和位置。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eThis guide explains the structure of Google Slides presentations, including the different types of pages and elements that compose them.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Slides presentations are built upon pages, which can be slides, masters, layouts, or notes pages.\u003c/p\u003e\n"],["\u003cp\u003ePages contain elements such as shapes, lines, images, charts, videos, tables, word art, and groups, each serving a specific visual purpose.\u003c/p\u003e\n"],["\u003cp\u003eYou can modify the appearance of page elements by adjusting their fill, border, text, size, and position using the Google Slides API.\u003c/p\u003e\n"]]],[],null,["# Structure of a presentation\n\nThis guide tells you about the data types that make up a Google Slides\npresentation. For additional detail on pages, page elements, and their\nproperties, see the corresponding section of the [Google Slides API\ndocumentation](/slides/concepts/page-elements).\n\nA Google Slides [`Presentation`](/apps-script/reference/slides/presentation) is composed of pages.\nA [`Page`](/apps-script/reference/slides/page) can have one or more page elements.\n\nPage types\n----------\n\nThere are various different types of pages that a presentation can contain.\nA [`Page`](/apps-script/reference/slides/page) can be one of the following types:\n\n| Page type | Description |\n|--------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`Slide`](/apps-script/reference/slides/slide) | The pages that users see and flip between when the presentation is rendered on a screen. |\n| [`Master`](/apps-script/reference/slides/master) | Contains placeholders that establish default text styles, as well as background and other shapes that make up the default background for all slides based on that master. |\n| [`Layout`](/apps-script/reference/slides/layout) | Determines how content is arranged on each type of slide. |\n| [`NotesPage`](/apps-script/reference/slides/notes-page) | Used for speaker's notes. |\n| [`NotesMasters`](/apps-script/reference/slides/notes-master) | Used for speaker's notes. |\n\nPage element types\n------------------\n\nEach [`PageElement`](/apps-script/reference/slides/page-element) on a page can\nbe one of the following types:\n\n| Page element type | Description |\n|-------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`Shape`](/apps-script/reference/slides/shape) | A plain visual object, such as rectangles, ellipses, and text boxes. Shapes can contain text, so they are the most common page elements to build slides. |\n| [`Line`](/apps-script/reference/slides/line) | A visual line, curve, or connector. |\n| [`Image`](/apps-script/reference/slides/image) | A graphic imported into Slides. |\n| [`SheetsChart`](/apps-script/reference/slides/sheets-chart) | A chart imported into Slides from Google Sheets. |\n| [`Video`](/apps-script/reference/slides/video) | A video imported into Slides. |\n| [`Table`](/apps-script/reference/slides/table) | A grid of content. |\n| [`WordArt`](/apps-script/reference/slides/word-art) | A visual text element that behaves more like a shape. |\n| [`Group`](/apps-script/reference/slides/group) | A set of page elements that are treated as an individual unit. They can be moved, scaled, and rotated together. |\n\nThe visual appearance of some page elements can be modified by changing their [fill](/apps-script/reference/slides/fill), [border](/apps-script/reference/slides/border), and [text](/apps-script/reference/slides/text-range). You can also change a page element's [size and position](/apps-script/guides/slides/moving-elements)."]]