IColumn
概述
IColumn 是 Aspose.Slides FOSS 中用于 Java 的接口。继承自:ICellCollection、IBulkTextFormattable。
表示表格中的一列。
此接口在 Java 程序中提供 14 个用于操作 IColumn 对象的方法。可用的方法包括:asICollection、asIEnumerable、asIPresentationComponent、asISlideComponent、get、getAsIBulkTextFormattable、getAsICellCollection、getColumnFormat、getPresentation、getSlide、getWidth、setTextFormat,以及另外 2 个方法。安装 Aspose.Slides FOSS for Java 包后,所有公共成员对任何 Java 应用程序均可访问。属性:asIBulkTextFormattable、asICellCollection、columnFormat、presentation、slide、width。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
width | double | 读取 | 返回或设置列的宽度。 |
asICellCollection | ICellCollection | 读取 | 允许获取基础 ICellCollection 接口。 |
asIBulkTextFormattable | IBulkTextFormattable | 读取 | 允许获取基础 IBulkTextFormattable 接口。 |
columnFormat | IColumnFormat | 读取 | 返回包含此列格式属性的 ColumnFormat 对象。 |
slide | IBaseSlide | 读取 | 返回父幻灯片。 |
presentation | IPresentation | 读取 | 返回包含此组件的演示文稿。 |
方法
| 签名 | 描述 |
|---|---|
getWidth() → double | 返回或设置列的宽度。 |
setWidth(value: double) | 设置列的宽度。 |
getAsICellCollection() → ICellCollection | 允许获取基础 ICellCollection 接口。 |
getAsIBulkTextFormattable() → IBulkTextFormattable | 允许获取基础 IBulkTextFormattable 接口。 |
getColumnFormat() → IColumnFormat | 返回包含此列格式属性的 ColumnFormat 对象。 |
get(index: int) → ICell | 获取指定索引处的单元格。 |
size() → int | 返回集合中单元格的数量。 |
asISlideComponent() → ISlideComponent | 返回基础 {@link ISlideComponent} 接口。 |
asICollection() → List<ICell> | 返回集合为 {@link List}。 |
asIEnumerable() → Iterable<ICell> | 返回集合为 {@link Iterable}。 |
getSlide() → IBaseSlide | 返回父幻灯片。 |
asIPresentationComponent() → IPresentationComponent | 返回基础 {@link IPresentationComponent} 接口。 |
getPresentation() → IPresentation | 返回包含此组件的演示文稿。 |
setTextFormat(source: Object) | 设置所有子文本元素的文本格式。 |