remove

remove() function

Removes layout from presentation.

Error

ErrorCondition
PptxEditExceptionThrown if layout is already removed from presentation or if layout is used in presentation (its HasDependingSlides property is true). To avoid throwing of the PptxEditException check layout’s HasDependingSlides property before.