ApiLayout
表示 ApiLayout 类。
方法
| 方法 | 返回值 | 描述 |
|---|---|---|
| AddObject | boolean | 向当前幻灯片版式添加对象(图像、形状或图表)。 |
| ClearBackground | boolean | 清除幻灯片版式背景。 |
| Copy | ApiLayout | null | 创建指定幻灯片版式对象的副本。不复制母版幻灯片。 |
| Delete | boolean | 如果存在,则从父幻灯片母版中删除指定对象。 |
| Duplicate | ApiLayout | null | 创建指定幻灯片版式对象的副本,并将新幻灯片版式添加到幻灯片版式集合。 |
| FollowMasterBackground | boolean | 将母版背景设置为版式的背景。 |
| GetAllCharts | ApiChart[] | 返回包含幻灯片版式中所有图表对象的数组。 |
| GetAllDrawings | Drawing[] | 返回包含幻灯片版式中所有绘图对象的数组。 |
| GetAllImages | ApiImage[] | 返回包含幻灯片版式中所有图像对象的数组。 |
| GetAllOleObjects | ApiOleObject[] | 返回包含幻灯片版式中所有 OLE 对象的数组。 |
| GetAllShapes | ApiShape[] | 返回包含幻灯片版式中所有形状对象的数组。 |
| GetAllTables | ApiTable[] | 返回包含当前幻灯片版式中所有表格的数组。 |
| GetClassType | "layout" | 返回 ApiLayout 类的类型。 |
| GetDrawingsByPlaceholderType | Drawing[] | 按指定的占位符类型返回绘图数组。 |
| GetLayoutType | LayoutType | 返回当前版式的类型。 |
| GetMaster | ApiMaster | 返回当前版式的父幻灯片母版。 |
| GetName | string | 返回当前版式的名称。 |
| GroupDrawings | ApiGroup | 在当前版式中将绘图数组分组。 |
| MoveTo | boolean | 将指定版式移动到同一集合中的特定位置。 |
| RemoveObject | boolean | 从当前幻灯片版式中删除对象(图像、形状或图表)。 |
| SetBackground | boolean | 设置当前幻灯片版式的背景。 |
| SetName | boolean | 为当前版式设置名称。 |
| ToJSON | JSON | 将 ApiLayout 对象转换为 JSON 对象。 |