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 属性(获取作者)。

属性

名称类型访问描述
rowint读取此评论所锚定单元格的零基行索引。
columnint读取此评论所锚定单元格的零基列索引。
authorString读取获取作者。
noteString读取获取备注。
visibleboolean读取获取可见的。
widthint读取评论框宽度(单位:像素,最小值为 1)。
heightint读取评论框高度(像素,最小 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)设置高度值。

另请参阅

 中文