Package com.grapecity.documents.excel
Interface IComment
public interface IComment
Represents a cell comment.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Deletes the object.voidGenerates the comment from the json string.Gets the anchor cell of the comment.Gets the author of the comment.getShape()Returns theIShapeobject that represents the shape attached to thespecified comment.getText()Gets the comment text.booleanDetermines whether the object is visible.next()Returns theICommentobject that represents the next comment.previous()Returns theICommentobject that represents the previous comment.voidSets the comment text.voidsetVisible(boolean value) Determines whether the object is visible.toJson()Generates a json string from the comment.
-
Method Details
-
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 theICommentobject that represents the next comment. -
previous
IComment previous()Returns theICommentobject 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 theIShapeobject that represents the shape attached to thespecified comment. -
fromJson
Generates the comment from the json string.- Parameters:
json- the json string that contains comment info
-
toJson
String toJson()Generates a json string from the comment.- Returns:
- the json string that contains comment info
-