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: 21.3.35.1045 (21.3.35.1045)
Syntax
public Slide AddNew(
	SlideLayoutType layoutType
)

Parameters

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.
Remarks

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