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。

属性

名称类型访问描述
widthdouble读取返回或设置列的宽度。
asICellCollectionICellCollection读取允许获取基础 ICellCollection 接口。
asIBulkTextFormattableIBulkTextFormattable读取允许获取基础 IBulkTextFormattable 接口。
columnFormatIColumnFormat读取返回包含此列格式属性的 ColumnFormat 对象。
slideIBaseSlide读取返回父幻灯片。
presentationIPresentation读取返回包含此组件的演示文稿。

方法

签名描述
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)设置所有子文本元素的文本格式。

另请参阅

 中文