/** * Returns the comment the user provided when the name was created. * * @return the user comment for this named range */ public String getComment() { if(_commentRec != null) { // Prefer the comment record if it has text in it if(_commentRec.getCommentText() != null && _commentRec.getCommentText().length() > 0) { return _commentRec.getCommentText(); } } return _definedNameRec.getDescriptionText(); }
/** * Returns the comment the user provided when the name was created. * * @return the user comment for this named range */ public String getComment() { if(_commentRec != null) { // Prefer the comment record if it has text in it if(_commentRec.getCommentText() != null && _commentRec.getCommentText().length() > 0) { return _commentRec.getCommentText(); } } return _definedNameRec.getDescriptionText(); }
/** * Returns the comment the user provided when the name was created. * * @return the user comment for this named range */ public String getComment() { if(_commentRec != null) { // Prefer the comment record if it has text in it if(_commentRec.getCommentText() != null && _commentRec.getCommentText().length() > 0) { return _commentRec.getCommentText(); } } return _definedNameRec.getDescriptionText(); }
/** * Returns the comment the user provided when the name was created. * * @return the user comment for this named range */ public String getComment() { if(_commentRec != null) { // Prefer the comment record if it has text in it if(_commentRec.getCommentText() != null && _commentRec.getCommentText().length() > 0) { return _commentRec.getCommentText(); } } return _definedNameRec.getDescriptionText(); }