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

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

本文整理了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

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() );
}

相关文章

微信公众号

最新文章

更多