public interface Comment
Modifier and Type | Method and Description |
---|---|
CellAddress |
getAddress()
Get the address of the cell that this comment is attached to
(获取此评论附加到的单元格的地址)
|
java.lang.String |
getAuthor()
Name of the original comment author
(原评论作者姓名)
|
ClientAnchor |
getClientAnchor()
Return defines position of this anchor in the sheet.
(Return 定义了该锚在工作表中的位置。)
|
int |
getColumn()
Return the column of the cell that contains the comment
(返回包含评论的单元格的列)
|
int |
getRow()
Return the row of the cell that contains the comment
(返回包含注释的单元格的行)
|
RichTextString |
getString()
Fetches the rich text string of the comment
(获取评论的富文本字符串)
|
boolean |
isVisible()
Returns whether this comment is visible.
(返回此评论是否可见。)
|
void |
setAddress(CellAddress addr)
Set the address of the cell that this comment is attached to
(设置此评论附加到的单元格的地址)
|
void |
setAddress(int row, int col)
Set the address of the cell that this comment is attached to
(设置此评论附加到的单元格的地址)
|
void |
setAuthor(java.lang.String author)
Name of the original comment author
(原评论作者姓名)
|
void |
setColumn(int col)
Set the column of the cell that contains the comment
(设置包含注释的单元格的列)
|
void |
setRow(int row)
Set the row of the cell that contains the comment
(设置包含注释的单元格的行)
|
void |
setString(RichTextString string)
Sets the rich text string used by this comment.
(设置此注释使用的富文本字符串。)
|
void |
setVisible(boolean visible)
Sets whether this comment is visible.
(设置此评论是否可见。)
|
void setVisible(boolean visible)
visible
-
true
if the comment is visible,
false
otherwise
(visible - 如果评论可见则为 true,否则为 false)
boolean isVisible()
true
if the comment is visible,
false
otherwise
(如果评论可见则为真,否则为假)
CellAddress getAddress()
void setAddress(CellAddress addr)
addr
-
(地址 -)
void setAddress(int row, int col)
row
-
(排 -)
col
-
(与 -)
int getRow()
void setRow(int row)
row
- the 0-based row of the cell that contains the comment
(row - 包含注释的单元格的从 0 开始的行)
int getColumn()
void setColumn(int col)
col
- the 0-based column of the cell that contains the comment
(col - 包含注释的单元格的从 0 开始的列)
java.lang.String getAuthor()
void setAuthor(java.lang.String author)
author
- the name of the original author of the comment
(author - 评论原作者的姓名)
RichTextString getString()
void setString(RichTextString string)
string
- Sets the rich text string used by this object.
(string - 设置此对象使用的富文本字符串。)
ClientAnchor getClientAnchor()
setAddress(org.apache.poi.ss.util.CellAddress)
.
(Return 定义了该锚在工作表中的位置。锚点是当评论可见时呈现在工作表顶部的黄色框/气球。要将评论与不同的单元格相关联,请使用 setAddress(org.apache.poi.ss.util.CellAddress)。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.