remove method

remove

Removes a layout from the collection.

def remove(self, value):
    ...
ParameterTypeDescription
valueILayoutSlideThe layout slide to remove from the collection.

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.

Exceptions

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

See Also