SlideLayout Class
A slide layout that defines the arrangement of placeholder shapes on a slide.
Declaration
public class SlideLayout extends SlideElement implements IChildObject
Remarks
Each SlideLayout:
- Belongs to a single SlideMaster
- Defines placeholders and structure
Slide Masters store SlideLayout objects in their ISlideLayoutCollection. Use the SlideMaster.getLayouts() method to access the collection.
// Access the first slide master.
SlideMaster master = presentation.getSlideMasters().get(0);
// Access the first layout.
SlideLayout layout = master.getLayouts().get(0);
// Access layout shapes.
IShapeCollection layoutShapes = layout.getShapes();
Inherited Members
Inheritance
Constructors
SlideLayout() Constructor
Initializes a new instance of the SlideLayout class.
Declaration
public SlideLayout()
SlideLayout(SlideLayoutType layoutType, String name) Constructor
Initializes a new instance of the SlideLayout class with specified layout type and name.
Declaration
public SlideLayout(SlideLayoutType layoutType, String name)
Parameters
| Name | Type | Description |
|---|---|---|
| layoutType | SlideLayoutType | The layout type. |
| name | String | The layout name. |
SlideLayout(SlideLayoutType layoutType) Constructor
Initializes a new instance of the SlideLayout class with the specified layout type.
Declaration
public SlideLayout(SlideLayoutType layoutType)
Parameters
| Name | Type | Description |
|---|---|---|
| layoutType | SlideLayoutType | The layout type. |
Methods
addParent(OfficeObject parent) Method
Adds the specified parent object to the slide layout.
Declaration
public void addParent(OfficeObject parent)
Parameters
| Name | Type | Description |
|---|---|---|
| parent | OfficeObject | The parent object. |
deepClone() Method
Clones the current SlideLayout instance.
Declaration
public SlideLayout deepClone()
Returns
| Type | Description |
|---|---|
SlideLayout |
The cloned |
getInitialParent() Method
Returns the initial parent object of the slide layout.
Declaration
public OfficeObject getInitialParent()
Returns
| Type | Description |
|---|---|
| OfficeObject | The initial parent object of the slide layout. |
getLayoutType() Method
Returns the slide layout type.
Declaration
public SlideLayoutType getLayoutType()
Returns
| Type | Description |
|---|---|
| SlideLayoutType | Slide layout type. |
getParents() Method
Returns parent objects.
Declaration
public IReadOnlyList<OfficeObject> getParents()
Returns
| Type | Description |
|---|---|
| com.devexpress.system.collections.generic.IReadOnlyList<OfficeObject> | Parent objects. |
removeParent(OfficeObject parent) Method
Removes the specified parent object from the slide layout.
Declaration
public void removeParent(OfficeObject parent)
Parameters
| Name | Type | Description |
|---|---|---|
| parent | OfficeObject | The parent object. |