| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) boolean |
autoNum
是否自动带序号
|
(专用程序包) int |
autoNumColumnWidth
自动排序列宽度
|
(专用程序包) short |
cellHeight
单元格高度
|
(专用程序包) List<R> |
data
导出的数据
|
(专用程序包) short |
footerHeight
尾行高度
|
(专用程序包) short |
headerHeight
表头高度
|
(专用程序包) List<Integer[]> |
mergerCells
自定义合并的单元格
|
(专用程序包) OpsColumn<R> |
opsColumn
导出的数据列定义
|
(专用程序包) OpsFooter<R> |
opsFooter
复杂尾设计容器
|
(专用程序包) OpsHeader<R> |
opsHeader
导出的表头定义
|
(专用程序包) String |
sheetName
sheet名字
|
(专用程序包) short |
titleHeight
标题高度
|
(专用程序包) int |
width
列宽自定义
|
| 限定符和类型 | 方法和说明 |
|---|---|
OpsSheet<R> |
autoNum()
sheetName 定义
自动生成序号, 此功能在复杂表头下, 需要自己定义序号列表头
|
OpsSheet<R> |
autoNumColumnWidth(int autoNumColumnWidth)
自动序号列宽度
|
OpsSheet<R> |
height(CellPosition cellPosition,
int height)
全局高度定义
|
OpsSheet<R> |
mergeCell(Integer... locationIndex)
合并单元格
|
OpsSheet<R> |
mergeCell(String location)
合并单元格
|
OpsSheet<R> |
mergeCells(List<String> locations)
合并单元格
|
OpsSheet<R> |
mergeCellsIndex(List<Integer[]> locations)
合并单元格
|
OpsColumn<R> |
opsColumn()
数据列定义
|
OpsFooter<R> |
opsFooter()
表头设置
|
OpsHeader<R> |
opsHeader()
表头设置
|
OpsSheet<R> |
sheetName(String sheetName)
sheetName 定义
|
OpsSheet<R> |
width(int width)
全局列宽自定义
|
short titleHeight
short headerHeight
short cellHeight
short footerHeight
int width
boolean autoNum
int autoNumColumnWidth
String sheetName
OpsSheet(OpsExport opsExport)
public OpsSheet<R> sheetName(String sheetName)
sheetName - sheet名称public OpsSheet<R> autoNumColumnWidth(int autoNumColumnWidth)
autoNumColumnWidth - 默认2000public OpsSheet<R> height(CellPosition cellPosition, int height)
cellPosition - 单元格类型height - 高度public OpsSheet<R> mergeCell(String location)
location - 坐标 A1:B2 或 1,2,A,B 这样public OpsSheet<R> mergeCell(Integer... locationIndex)
locationIndex - 数组下标 如 0,0,0,0public OpsSheet<R> mergeCells(List<String> locations)
locations - 批量合并坐标Copyright © 2023. All rights reserved.