IGlobalLayoutSlideCollection

All Implemented Interfaces: com.aspose.slides.ILayoutSlideCollection

public interface IGlobalLayoutSlideCollection extends ILayoutSlideCollection

Represents a collection of all layout slides in presentation. Extends ILayoutSlideCollection interface with methods for adding/cloning layout slides in context of uniting of the individual collections of master’s layout slides.

Methods

MethodDescription
addClone(ILayoutSlide sourceLayout)Adds a copy of a specified layout slide to the presentation.
addClone(ILayoutSlide sourceLayout, IMasterSlide destMaster)Adds a copy of a specified layout slide to the presentation.
add(IMasterSlide master, byte layoutType, String layoutName)Adds a new layout slide to the presentation.

addClone(ILayoutSlide sourceLayout)

public abstract ILayoutSlide addClone(ILayoutSlide sourceLayout)

Adds a copy of a specified layout slide to the presentation.

Parameters:

ParameterTypeDescription
sourceLayoutILayoutSlideSlide to clone.

When cloning a layout between different presentations layout’s master can be cloned too to keep source formatting. Internal registry is used to track automatically cloned masters to prevent creation of multiple clones of the same master slide. Manual cloning of master slides will be neither prevented nor registered. |

Returns: ILayoutSlide - Added slide.

addClone(ILayoutSlide sourceLayout, IMasterSlide destMaster)

public abstract ILayoutSlide addClone(ILayoutSlide sourceLayout, IMasterSlide destMaster)

Adds a copy of a specified layout slide to the presentation.

Parameters:

ParameterTypeDescription
sourceLayoutILayoutSlideSlide to clone.
destMasterIMasterSlideMaster slide for a new layout.

New layout will be linked with defined master in destination presentation. So this is analogue of copy/paste with “Use Destination Theme” option in PowerPoint. |

Returns: ILayoutSlide - Added slide.

add(IMasterSlide master, byte layoutType, String layoutName)

public abstract ILayoutSlide add(IMasterSlide master, byte layoutType, String layoutName)

Adds a new layout slide to the presentation.

Parameters:

ParameterTypeDescription
masterIMasterSlideMaster slide for a new layout.
layoutTypebyteLayout type for a new layout. Supported layout types: Title, TitleOnly, Blank, TitleAndObject, VerticalText, VerticalTitleAndText, TwoObjects, SectionHeader, TwoTextAndTwoObjects, TitleObjectAndCaption, PictureAndCaption, Custom. Other layout types are not supported now: Text, TwoColumnText, Table, TextAndChart, ChartAndText, Diagram, Chart, TextAndClipArt, ClipArtAndText, TextAndObject, ObjectAndText, Object, TextAndMedia, MediaAndText, ObjectOverText, TextOverObject, TextAndTwoObjects, TwoObjectsAndText, TwoObjectsOverText, FourObjects, ClipArtAndVerticalText, VerticalTitleAndTextOverChart, ObjectAndTwoObject, TwoObjectsAndObject.
layoutNamejava.lang.StringName for a new layout. If passed name is already in use the ArgumentException will be thrown. If null parameter is passed then name genarated atomatically in regards to passed layout type (for example “Title Slide” or “1_Title Slide”, “2_..”, etc.).

  1. Added layout for value SlideLayoutType.Custom of layoutType contains no placeholders and no shapes. 2) Analogue of this method is method IMasterLayoutSlideCollection.add(byte,String) accessed with (IMasterSlide.getLayoutSlides) property. |

Returns: ILayoutSlide - Added slide.