RemoveAt

MasterSlideCollection.RemoveAt method

移除集合指定索引处的元素。

public void RemoveAt(int index)
范围类型描述
indexInt32要删除的元素的从零开始的索引。

例外

例外(健康)状况
PptxEditException如果在演示中使用要删除的主对象(其 HasDependingSlides 属性为 true),则抛出该异常。

评论

为避免抛出 PptxEditException,请先检查 master 的 HasDependingSlides 属性。

也可以看看