RemoveAt
MasterLayoutSlideCollection.RemoveAt method
Removes the element at the specified index of the collection.
public void RemoveAt(int index)
Parameter |
Type |
Description |
index |
Int32 |
The zero-based index of the element to remove. |
Exceptions
exception |
condition |
PptxEditException |
Thrown if layout is used in presentation (its HasDependingSlides property is true). |
- To avoid throwing of the PptxEditException check layout’s HasDependingSlides property before. 2) You can use also
Remove
method to simplify code.
See Also