IRowCollection
概述
IRowCollection 是 Aspose.Slides FOSS 中用于 .NET 的接口。
表示一组表格行。
此接口为在 .NET 程序中处理 IRowCollection 对象提供了 3 个方法。可用的方法包括:AddClone、InsertClone、RemoveAt。在安装了用于 .NET 的 Aspose.Slides FOSS 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:AsICollection、AsIEnumerable、Count。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Count | int | 读取 | 获取行数。 |
AsICollection | IList<IRow> | 读取 | 获取所有行的浅拷贝作为列表。 |
AsIEnumerable | IEnumerable<IRow> | 读取 | 获取行的可枚举对象。 |
方法
| 签名 | 描述 |
|---|---|
AddClone(templ: IRow, withAttachedRows: bool) | 克隆模板行并将结果追加到集合的末尾。 |
InsertClone(index: int, templ: IRow, withAttachedRows: bool) | 克隆模板行并将结果插入到指定位置。 |
RemoveAt(firstRowIndex: int, withAttachedRows: bool) | 删除指定索引处的行。 |