Constructor and Description |
---|
XSSFComment(CommentsTable comments, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment comment, com.microsoft.schemas.vml.CTShape vmlShape)
Creates a new XSSFComment, associated with a given low level comment object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
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
(返回包含评论的单元格的列)
|
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment |
getCTComment() |
protected com.microsoft.schemas.vml.CTShape |
getCTShape() |
int |
getRow()
Return the row of the cell that contains the comment
(返回包含注释的单元格的行)
|
XSSFRichTextString |
getString()
Fetches the rich text string of the comment
(获取评论的富文本字符串)
|
int |
hashCode() |
boolean |
isVisible()
Returns whether this comment is visible.
(返回此评论是否可见。)
|
void |
setAddress(CellAddress address)
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 If changing both row and column, use
setAddress(int, int) .
(设置包含注释的单元格的列 如果同时更改行和列,请使用 setAddress(int, int)。)
|
void |
setRow(int row)
Set the row of the cell that contains the comment If changing both row and column, use
setAddress(int, int) .
(设置包含注释的单元格的行 如果同时更改行和列,请使用 setAddress(int, int)。)
|
void |
setString(RichTextString string)
Sets the rich text string used by this comment.
(设置此注释使用的富文本字符串。)
|
void |
setString(java.lang.String string) |
void |
setVisible(boolean visible)
Sets whether this comment is visible.
(设置此评论是否可见。)
|
public XSSFComment(CommentsTable comments, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment comment, com.microsoft.schemas.vml.CTShape vmlShape)
public java.lang.String getAuthor()
Comment
public void setAuthor(java.lang.String author)
public int getColumn()
Comment
public int getRow()
Comment
public boolean isVisible()
public void setVisible(boolean visible)
setVisible
in interface
Comment
(接口注释中的 setVisible)
visible
-
true
if the comment is visible,
false
otherwise
(visible - 如果评论可见则为 true,否则为 false)
public CellAddress getAddress()
Comment
getAddress
in interface
Comment
(接口注释中的getAddress)
public void setAddress(int row, int col)
Comment
setAddress
in interface
Comment
(接口注释中的 setAddress)
public void setAddress(CellAddress address)
Comment
setAddress
in interface
Comment
(接口注释中的 setAddress)
public void setColumn(int col)
setAddress(int, int)
.
(设置包含注释的单元格的列 如果同时更改行和列,请使用 setAddress(int, int)。)
public void setRow(int row)
setAddress(int, int)
.
(设置包含注释的单元格的行 如果同时更改行和列,请使用 setAddress(int, int)。)
public XSSFRichTextString getString()
Comment
public void setString(RichTextString string)
public void setString(java.lang.String string)
public ClientAnchor getClientAnchor()
Comment
Comment.setAddress(org.apache.poi.ss.util.CellAddress)
.
(Return 定义了该锚在工作表中的位置。锚点是当评论可见时呈现在工作表顶部的黄色框/气球。要将评论与不同的单元格相关联,请使用 Comment.setAddress(org.apache.poi.ss.util.CellAddress)。)
getClientAnchor
in interface
Comment
(接口注释中的getClientAnchor)
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment getCTComment()
protected com.microsoft.schemas.vml.CTShape getCTShape()
public boolean equals(java.lang.Object obj)
equals
in class
java.lang.Object
public int hashCode()
hashCode
in class
java.lang.Object
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.