Remove

ILayoutSlideCollection.Remove method

Removes a layout from the collection.

public void Remove(ILayoutSlide value)
ParameterTypeDescription
valueILayoutSlideThe layout slide to remove from the collection.

Exceptions

exceptioncondition
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 Remove method to simplify code.

See Also