本文整理了Java中org.apache.poi.ss.usermodel.CellStyle.getAlignmentEnum()
方法的一些代码示例,展示了CellStyle.getAlignmentEnum()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CellStyle.getAlignmentEnum()
方法的具体详情如下:
包路径:org.apache.poi.ss.usermodel.CellStyle
类名称:CellStyle
方法名:getAlignmentEnum
[英]get the type of horizontal alignment for the cell
[中]获取单元格的水平对齐类型
代码示例来源:origin: net.paissad.tools.reqcoco/reqcoco-core
addBordersToCellStyle(currentCellStyle, BorderStyle.THIN);
cell.setCellStyle(currentCellStyle);
currentCellStyle.setAlignment(headerCellStyle.getAlignmentEnum());
currentCellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
if (req.isIgnore() && !(CellConfig.CODE_STATUS == cellConfig || CellConfig.TEST_STATUS == cellConfig)) {
代码示例来源:origin: pentaho/pentaho-reporting
protected HSSFCellStyleKey( final CellStyle style ) {
this.color = style.getFillForegroundColor();
this.colorTop = style.getTopBorderColor();
this.colorLeft = style.getLeftBorderColor();
this.colorBottom = style.getBottomBorderColor();
this.colorRight = style.getRightBorderColor();
this.borderStrokeTop = style.getBorderTopEnum();
this.borderStrokeLeft = style.getBorderLeftEnum();
this.borderStrokeBottom = style.getBorderBottomEnum();
this.borderStrokeRight = style.getBorderRightEnum();
this.dataStyle = style.getDataFormat();
this.font = style.getFontIndex();
this.horizontalAlignment = style.getAlignmentEnum();
this.verticalAlignment = style.getVerticalAlignmentEnum();
this.wrapText = style.getWrapText();
this.textRotation = TextRotation.getInstance( style.getRotation() );
}
内容来源于网络,如有侵权,请联系作者删除!