Package | Description |
---|---|
org.dromara.hutool.poi.excel.style |
Excel样式封装,入口为:StyleUtil
|
Modifier and Type | Method and Description |
---|---|
DefaultStyleSet |
DefaultStyleSet.setAlign(org.apache.poi.ss.usermodel.HorizontalAlignment halign,
org.apache.poi.ss.usermodel.VerticalAlignment valign)
设置cell文本对齐样式
|
DefaultStyleSet |
DefaultStyleSet.setBackgroundColor(org.apache.poi.ss.usermodel.IndexedColors backgroundColor,
boolean withHeadCell)
设置单元格背景样式
|
DefaultStyleSet |
DefaultStyleSet.setBorder(org.apache.poi.ss.usermodel.BorderStyle borderSize,
org.apache.poi.ss.usermodel.IndexedColors colorIndex)
定义所有单元格的边框类型
|
DefaultStyleSet |
DefaultStyleSet.setFont(org.apache.poi.ss.usermodel.Font font,
boolean ignoreHead)
设置全局字体
|
DefaultStyleSet |
DefaultStyleSet.setFont(short color,
short fontSize,
String fontName,
boolean ignoreHead)
设置全局字体
|
DefaultStyleSet |
DefaultStyleSet.setWrapText()
设置单元格文本自动换行
|
Copyright © 2025. All rights reserved.