Click or drag to resize

SlideCollectionInsertNew Method (Int32)

Inserts a new Slide to the collection at the specified index.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: (
public Slide InsertNew(
	int index


Type: SystemInt32
The zero-based index at which new Slide should be inserted.

Return Value

Type: Slide
A new Slide inserted to the collection.
ArgumentOutOfRangeExceptionindex is less than zero or index is equal to or greater than Count.

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