Click or drag to resize

LayoutSlideCollectionInsertNew Method

Inserts a new LayoutSlide with the specified type of layout to the collection at the specified index.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1038 (21.3.35.1038)
Syntax
public LayoutSlide InsertNew(
	int index,
	SlideLayoutType layoutType
)

Parameters

index
Type: SystemInt32
The zero-based index at which new LayoutSlide should be inserted.
layoutType
Type: GemBox.PresentationSlideLayoutType
The type of layout of a new LayoutSlide.

Return Value

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