ApiLayout
Represents the ApiLayout class.
Methods
| Method | Returns | Description |
|---|---|---|
| AddObject | boolean | Adds an object (image, shape or chart) to the current slide layout. |
| ClearBackground | boolean | Clears the slide layout background. |
| Copy | ApiLayout | null | Creates a copy of the specified slide layout object. Copies without master slide. |
| Delete | boolean | Deletes the specified object from the parent slide master if it exists. |
| Duplicate | ApiLayout | null | Creates a duplicate of the specified slide layout object, adds the new slide layout to the slide layout collection. |
| FollowMasterBackground | boolean | Sets the master background as the background of the layout. |
| GetAllCharts | ApiChart[] | Returns an array with all the chart objects from the slide layout. |
| GetAllDrawings | Drawing[] | Returns an array with all the drawing objects from the slide layout. |
| GetAllImages | ApiImage[] | Returns an array with all the image objects from the slide layout. |
| GetAllOleObjects | ApiOleObject[] | Returns an array with all the OLE objects from the slide layout. |
| GetAllShapes | ApiShape[] | Returns an array with all the shape objects from the slide layout. |
| GetAllTables | ApiTable[] | Returns an array with all tables from the current slide layout. |
| GetClassType | "layout" | Returns the type of the ApiLayout class. |
| GetDrawingsByPlaceholderType | Drawing[] | Returns an array of drawings by the specified placeholder type. |
| GetLayoutType | LayoutType | Returns the type of the current layout. |
| GetMaster | ApiMaster | Returns the parent slide master of the current layout. |
| GetName | string | Returns a name of the current layout. |
| GroupDrawings | ApiGroup | Groups an array of drawings in the current layout. |
| MoveTo | boolean | Moves the specified layout to a specific location within the same collection. |
| RemoveObject | boolean | Removes objects (image, shape or chart) from the current slide layout. |
| SetBackground | boolean | Sets the background to the current slide layout. |
| SetName | boolean | Sets a name to the current layout. |
| ToJSON | JSON | Converts the ApiLayout object into the JSON object. |