接口 IComment
public interface IComment
Represents a cell comment.
-
方法概要
修饰符和类型方法说明void
delete()
Deletes the object.void
Generates the comment from the json string.Gets the anchor cell of the comment.Gets the author of the comment.getShape()
Returns theIShape
object that represents the shape attached to thespecified comment.getText()
Gets the comment text.boolean
Determines whether the object is visible.next()
Returns theIComment
object that represents the next comment.previous()
Returns theIComment
object that represents the previous comment.void
Sets the comment text.void
setVisible
(boolean value) Determines whether the object is visible.toJson()
Generates a json string from the comment.
-
方法详细资料
-
getText
String getText()Gets the comment text. -
setText
Sets the comment text. -
getAuthor
String getAuthor()Gets the author of the comment. -
getAnchorCell
IRange getAnchorCell()Gets the anchor cell of the comment. -
delete
void delete()Deletes the object. -
next
IComment next()Returns theIComment
object that represents the next comment. -
previous
IComment previous()Returns theIComment
object that represents the previous comment. -
getVisible
boolean getVisible()Determines whether the object is visible. -
setVisible
void setVisible(boolean value) Determines whether the object is visible. -
getShape
IShape getShape()Returns theIShape
object that represents the shape attached to thespecified comment. -
fromJson
Generates the comment from the json string.- 参数:
json
- the json string that contains comment info
-
toJson
String toJson()Generates a json string from the comment.- 返回:
- the json string that contains comment info
-