Click or drag to resize

SlideCollectionAddNew Method (SlideLayoutType)

Adds a new Slide with a parent template that has a specified type of layout to the end of the collection.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: (
public Slide AddNew(
	SlideLayoutType layoutType


Type: GemBox.PresentationSlideLayoutType
The type of layout of a parent template of a new Slide.

Return Value

Type: Slide
A new Slide with the specified type of layout added to the collection.

If MasterSlides collection is empty, this method will add a new MasterSlide.

If LayoutSlides collection of the last MasterSlide from the MasterSlides doesn't contain a LayoutSlide with the specified layoutType, then a new LayoutSlide with the specified layoutType will be added.

See Also