RemoveAt
IMasterLayoutSlideCollection.RemoveAt 方法
删除集合中指定索引的元素。
public void RemoveAt(int index)
参数 | 类型 | 描述 |
---|---|---|
index | Int32 | 要删除的元素的零基础索引。 |
异常
异常 | 条件 |
---|---|
PptxEditException | 如果布局在演示文稿中被使用(其 HasDependingSlides 属性为 true),则抛出此异常。 |
备注
- 为了避免抛出 PptxEditException,请先检查布局的 HasDependingSlides 属性。 2) 你也可以使用
Remove
方法来简化代码。