Comment
概述
Comment 是 Aspose.Cells FOSS 中用于 Java 的一个类。
表示一个单元格注释(备注)。
此类提供了 12 个方法,用于在 Java 程序中处理 Comment 对象。可用的方法包括:getAuthor、getColumn、getHeight、getNote、getRow、getWidth、isVisible、setAuthor、setHeight、setNote、setVisible、setWidth。在安装 Aspose.Cells FOSS for Java 包后,所有导出的成员对任何 Java 应用程序均可访问。属性:author、column、height、note、row、visible,以及另 1 项。
描述
Comment 是 Aspose.Cells FOSS 库中用于 Java 的一个类,公开了 12 个方法和 7 个属性以供编程使用。
核心功能包括:string;string;boolean。这些操作使开发者能够将注释功能直接集成到 Java 应用程序中。
该类还提供了 row 属性(此注释所锚定单元格的零基行索引)、column 属性(此注释所锚定单元格的零基列索引)、以及 author 属性(获取作者)。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
row | int | 读取 | 此评论所锚定单元格的零基行索引。 |
column | int | 读取 | 此评论所锚定单元格的零基列索引。 |
author | String | 读取 | 获取作者。 |
note | String | 读取 | 获取备注。 |
visible | boolean | 读取 | 获取可见的。 |
width | int | 读取 | 评论框宽度(单位:像素,最小值为 1)。 |
height | int | 读取 | 评论框高度(像素,最小 1)。 |
方法
| 签名 | 描述 |
|---|---|
getRow() → int | 此评论所锚定单元格的零基行索引。 |
getColumn() → int | 此评论所锚定单元格的零基列索引。 |
getAuthor() → String | 返回作者。 |
setAuthor(author: String) | 设置 author 值。 |
getNote() → String | 返回注释。 |
setNote(note: String) | 设置注释值。 |
isVisible() → boolean | 如果已设置 visible,则返回 true。 |
setVisible(visible: boolean) | 设置可见值。 |
getWidth() → int | 评论框宽度(像素,最小 1)。 |
setWidth(width: int) | 设置宽度值。 |
getHeight() → int | 评论框高度(像素,最小 1)。 |
setHeight(height: int) | 设置高度值。 |