org.apache.poi.hssf.usermodel.HSSFSheet.findCellComment()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中org.apache.poi.hssf.usermodel.HSSFSheet.findCellComment()方法的一些代码示例,展示了HSSFSheet.findCellComment()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HSSFSheet.findCellComment()方法的具体详情如下:
包路径:org.apache.poi.hssf.usermodel.HSSFSheet
类名称:HSSFSheet
方法名:findCellComment

HSSFSheet.findCellComment介绍

[英]Finds all cell comments in this sheet and adds them to the specified locations map
[中]查找此工作表中的所有单元格注释,并将其添加到指定的位置映射中

代码示例

代码示例来源:origin: org.apache.poi/poi

/**
 * Returns cell comment for the specified row and column
 *
 * @return cell comment or <code>null</code> if not found
 */
@Override
public HSSFComment getCellComment(CellAddress ref) {
  return findCellComment(ref.getRow(), ref.getColumn());
}

代码示例来源:origin: org.apache.poi/poi

/**
 * Returns comment associated with this cell
 *
 * @return comment associated with this cell
 */
 public HSSFComment getCellComment(){
  if (_comment == null) {
    _comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
  }
  return _comment;
}

代码示例来源:origin: org.apache.poi/poi

/**
 * Removes the comment for this cell, if
 *  there is one.
 * WARNING - some versions of excel will loose
 *  all comments after performing this action!
 */
public void removeCellComment() {
  HSSFComment comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
  _comment = null;
  if (null == comment){
    return;
  }
  _sheet.getDrawingPatriarch().removeShape(comment);
}

代码示例来源:origin: com.haulmont.thirdparty/poi

/**
 * Returns cell comment for the specified row and column
 *
 * @return cell comment or <code>null</code> if not found
 */
public HSSFComment getCellComment(int row, int column) {
  return findCellComment(row, column);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Returns cell comment for the specified row and column
 *
 * @return cell comment or <code>null</code> if not found
 */
@Override
public HSSFComment getCellComment(CellAddress ref) {
  return findCellComment(ref.getRow(), ref.getColumn());
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Returns comment associated with this cell
 *
 * @return comment associated with this cell
 */
 public HSSFComment getCellComment(){
  if (_comment == null) {
    _comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
  }
  return _comment;
}

代码示例来源:origin: com.haulmont.thirdparty/poi

/**
 * Returns comment associated with this cell
 *
 * @return comment associated with this cell
 */
 public HSSFComment getCellComment(){
  if (_comment == null) {
    _comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
  }
  return _comment;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Removes the comment for this cell, if
 *  there is one.
 * WARNING - some versions of excel will loose
 *  all comments after performing this action!
 */
public void removeCellComment() {
  HSSFComment comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
  _comment = null;
  if (null == comment){
    return;
  }
  _sheet.getDrawingPatriarch().removeShape(comment);
}

代码示例来源:origin: com.haulmont.thirdparty/poi

/**
 * Removes the comment for this cell, if
 *  there is one.
 * WARNING - some versions of excel will loose
 *  all comments after performing this action!
 */
public void removeCellComment() {
  HSSFComment comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
  _comment = null;
  if (null == comment){
    return;
  }
  _sheet.getDrawingPatriarch().removeShape(comment);
}

相关文章

微信公众号

最新文章

更多

HSSFSheet类方法