Click or drag to resize

SlideCollectionAddNew Method

Adds a new Slide to the end of the collection.

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

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 whose type of layout is Title (for a first slide) or TitleAndObject (for a subsequent slides), then a new LayoutSlide with the appropriate type of layout will be added.

If slide is the first in the presentation, then its parent layout template will have a layout type of Title; otherwise, it will have a layout type of TitleAndObject.

See Also