SlideCollection

SlideCollection

概述

SlideCollection 是 Aspose.Slides FOSS 中用于 .NET 的类。继承自:ISlideCollection。

表示演示文稿中的幻灯片集合。

此类提供 14 个方法,用于在 .NET 程序中操作 SlideCollection 对象。可用的方法包括:AddClone、AddEmptySlide、GetEnumerator、IndexOf、InsertClone、InsertEmptySlide、Remove、RemoveAt、ToArray。在安装 Aspose.Slides FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:AsICollection、AsIEnumerable、Count。

属性

名称类型访问描述
Countint读取获取计数。
AsICollectionIList<ISlide>读取获取 as i 集合。
AsIEnumerableIEnumerable<ISlide>读取获取作为 IEnumerable。

方法

签名描述
AddClone(sourceSlide: ISlide)将源幻灯片的副本添加到给定的母版幻灯片中,可选地克隆缺失的布局
AddClone(sourceSlide: ISlide, destLayout: ILayoutSlide)在此 SlideCollection 实例上调用 AddClone(sourceSlide, destLayout)。
AddClone(sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: bool)在此 SlideCollection 实例上调用 AddClone(sourceSlide, destMaster, allowCloneMissingLayout)。
InsertClone(index: int, sourceSlide: ISlide)在指定的母版幻灯片中,将克隆的幻灯片插入到 index 位置,可选择是否克隆布局。
InsertClone(index: int, sourceSlide: ISlide, destLayout: ILayoutSlide)在此 SlideCollection 实例上调用 InsertClone(index, sourceSlide, destLayout)。
InsertClone(index: int, sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: bool)在此 SlideCollection 实例上调用 InsertClone(index, sourceSlide, destMaster, allowCloneMissingLayout)。
ToArray()返回一个子数组,包含从 startIndex 开始的 count 个幻灯片。
ToArray(startIndex: int, count: int)在此 SlideCollection 实例上调用 ToArray(startIndex, count)。
AddEmptySlide(layout: ILayoutSlide)在此 SlideCollection 实例上调用 AddEmptySlide(layout)。
InsertEmptySlide(index: int, layout: ILayoutSlide)在 index 处使用指定布局插入一个新的空幻灯片
Remove(value: ISlide)在此 SlideCollection 实例上调用 Remove(value)。
RemoveAt(index: int)在给定的零基索引处删除幻灯片
IndexOf(slide: ISlide)在此 SlideCollection 实例上调用 IndexOf(slide)。
GetEnumerator()提供一个枚举器来遍历幻灯片

另请参阅

 中文