diff options
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/poi/hssf/usermodel/HSSFComment.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java b/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java index 8ae4fb8926..ed723f3d9d 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java @@ -137,6 +137,13 @@ public class HSSFComment extends HSSFTextbox implements Comment { if(note != null) note.setAuthor(author); this.author = author; } + + /** + * Fetches the rich text string of the comment + */ + public HSSFRichTextString getString() { + return txo.getStr(); + } /** * Sets the rich text string used by this comment. |