RemoveAt()

IMasterLayoutSlideCollection::RemoveAt(int32_t) method

Removes the element at the specified index of the collection.

virtual void Aspose::Slides::IMasterLayoutSlideCollection::RemoveAt(int32_t index)=0

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index of the element to remove.

Exceptions

ExceptionDescription
Aspose::Slides::PptxEditExceptionThrown if layout is used in presentation (its HasDependingSlides property is true).

Remarks

  1. To avoid throwing of the PptxEditException check layout’s HasDependingSlides property before. 2) You can use also ILayoutSlide::Remove method to simplify code.

See Also