mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
859762c23a
commit
7adc506c8d
@ -464,16 +464,16 @@ public class ExcelWriter extends ExcelBase<ExcelWriter, ExcelWriteConfig> {
|
|||||||
/**
|
/**
|
||||||
* 设置行高,值为一个点的高度
|
* 设置行高,值为一个点的高度
|
||||||
*
|
*
|
||||||
* @param rownum 行号(从0开始计数,-1表示所有行的默认高度)
|
* @param rowNum 行号(从0开始计数,-1表示所有行的默认高度)
|
||||||
* @param height 高度
|
* @param height 高度
|
||||||
* @return this
|
* @return this
|
||||||
* @since 4.0.8
|
* @since 4.0.8
|
||||||
*/
|
*/
|
||||||
public ExcelWriter setRowHeight(final int rownum, final int height) {
|
public ExcelWriter setRowHeight(final int rowNum, final int height) {
|
||||||
if (rownum < 0) {
|
if (rowNum < 0) {
|
||||||
this.sheet.setDefaultRowHeightInPoints(height);
|
this.sheet.setDefaultRowHeightInPoints(height);
|
||||||
} else {
|
} else {
|
||||||
final Row row = this.sheet.getRow(rownum);
|
final Row row = this.sheet.getRow(rowNum);
|
||||||
if (null != row) {
|
if (null != row) {
|
||||||
row.setHeightInPoints(height);
|
row.setHeightInPoints(height);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user