Column
概述
Column 是 Aspose.Slides FOSS 中用于 Java 的类。继承自:IColumn。
表示表格中的一列。
此类提供了 17 个用于在 Java 程序中处理 Column 对象的方法。可用的方法包括:Column、asICollection、asIEnumerable、asIPresentationComponent、asISlideComponent、get、getAsIBulkTextFormattable、getAsICellCollection、getColumnFormat、getPresentation、getSlide、getWidth,以及另外 4 个方法。安装 Aspose.Slides FOSS for Java 包后,所有公共成员对任何 Java 应用程序均可访问。属性:asIBulkTextFormattable、asICellCollection、columnFormat、presentation、slide、width。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
width | double | 读取 | 获取宽度。 |
asICellCollection | ICellCollection | 读取 | 获取 as i 单元格集合。 |
asIBulkTextFormattable | IBulkTextFormattable | 读取 | 获取作为批量文本可格式化的。 |
columnFormat | IColumnFormat | 读取 | 获取列格式。 |
slide | IBaseSlide | 读取 | 获取幻灯片。 |
presentation | IPresentation | 读取 | 获取表示形式。 |
方法
| 签名 | 描述 |
|---|---|
Column(gridColElement: Element, saveCallback: Runnable, cells: List<ICell>) | 创建一个由给定 {@code <a:gridCol>} 元素支持的新 Column。 |
Column() | 创建一个没有 backing 元素的 Column。 |
initInternal(gridColElement: Element, colIndex: int, tblElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide, table: ITable) → Column | 从给定的 {@code <a:gridCol>} 元素和表上下文初始化此列。 |
getWidth() → double | 返回宽度。 |
setWidth(value: double) | 设置宽度值。 |
get(index: int) → ICell | 返回给定列索引处的单元格 |
size() → int | |
getAsICellCollection() → ICellCollection | 返回 as i 单元格集合。 |
getAsIBulkTextFormattable() → IBulkTextFormattable | 返回 as i 批量文本可格式化对象。 |
getColumnFormat() → IColumnFormat | 返回列格式。 |
setTextFormat(source: Object) | 设置文本格式值。 |
asICollection() → List<ICell> | 返回列的单元格,作为 List |
asIEnumerable() → Iterable<ICell> | 返回列的单元格,作为 Iterable |
getSlide() → IBaseSlide | 返回幻灯片。 |
getPresentation() → IPresentation | 返回演示文稿。 |
asISlideComponent() → ISlideComponent | 将此列作为 ISlideComponent 返回 |
asIPresentationComponent() → IPresentationComponent | 将此列作为 IPresentationComponent 返回 |