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