Click or drag to resize

SlideCollectionInsertNew Method (Int32, LayoutSlide)

Inserts a new Slide with the specified parent layout template to the collection at the specified index.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1032 (21.3.35.1032)
Syntax
public Slide InsertNew(
	int index,
	LayoutSlide layoutSlide
)

Parameters

index
Type: SystemInt32
The zero-based index at which new Slide should be inserted.
layoutSlide
Type: GemBox.PresentationLayoutSlide
The parent layout template of a new Slide.

Return Value

Type: Slide
A new Slide with the specified parent layout template inserted to the collection.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero or index is equal to or greater than Count.
See Also