org.apache.poi.ss.usermodel.CellStyle.getAlignmentEnum()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(355)

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

CellStyle.getAlignmentEnum介绍

[英]get the type of horizontal alignment for the cell
[中]获取单元格的水平对齐类型

代码示例

代码示例来源:origin: net.paissad.tools.reqcoco/reqcoco-core

  1. addBordersToCellStyle(currentCellStyle, BorderStyle.THIN);
  2. cell.setCellStyle(currentCellStyle);
  3. currentCellStyle.setAlignment(headerCellStyle.getAlignmentEnum());
  4. currentCellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
  5. if (req.isIgnore() && !(CellConfig.CODE_STATUS == cellConfig || CellConfig.TEST_STATUS == cellConfig)) {

代码示例来源:origin: pentaho/pentaho-reporting

  1. protected HSSFCellStyleKey( final CellStyle style ) {
  2. this.color = style.getFillForegroundColor();
  3. this.colorTop = style.getTopBorderColor();
  4. this.colorLeft = style.getLeftBorderColor();
  5. this.colorBottom = style.getBottomBorderColor();
  6. this.colorRight = style.getRightBorderColor();
  7. this.borderStrokeTop = style.getBorderTopEnum();
  8. this.borderStrokeLeft = style.getBorderLeftEnum();
  9. this.borderStrokeBottom = style.getBorderBottomEnum();
  10. this.borderStrokeRight = style.getBorderRightEnum();
  11. this.dataStyle = style.getDataFormat();
  12. this.font = style.getFontIndex();
  13. this.horizontalAlignment = style.getAlignmentEnum();
  14. this.verticalAlignment = style.getVerticalAlignmentEnum();
  15. this.wrapText = style.getWrapText();
  16. this.textRotation = TextRotation.getInstance( style.getRotation() );
  17. }

相关文章