public final class PoiMergeCellUtil
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addMergedRegion(org.apache.poi.ss.usermodel.Sheet sheet,
int firstRow,
int lastRow,
int firstCol,
int lastCol) |
static void |
mergeCells(org.apache.poi.ss.usermodel.Sheet sheet,
int startRow,
java.lang.Integer... columns)
纵向合并相同内容的单元格
|
static void |
mergeCells(org.apache.poi.ss.usermodel.Sheet sheet,
java.util.Map<java.lang.Integer,int[]> mergeMap,
int startRow)
纵向合并相同内容的单元格
|
static void |
mergeCells(org.apache.poi.ss.usermodel.Sheet sheet,
java.util.Map<java.lang.Integer,int[]> mergeMap,
int startRow,
int endRow)
纵向合并相同内容的单元格
|
public static void mergeCells(org.apache.poi.ss.usermodel.Sheet sheet,
int startRow,
java.lang.Integer... columns)
sheet - startRow - 开始行columns - 需要处理的列public static void mergeCells(org.apache.poi.ss.usermodel.Sheet sheet,
java.util.Map<java.lang.Integer,int[]> mergeMap,
int startRow)
sheet - mergeMap - key--列,value--依赖的列,没有传空startRow - 开始行public static void mergeCells(org.apache.poi.ss.usermodel.Sheet sheet,
java.util.Map<java.lang.Integer,int[]> mergeMap,
int startRow,
int endRow)
sheet - mergeMap - key--列,value--依赖的列,没有传空startRow - 开始行endRow - 结束行public static void addMergedRegion(org.apache.poi.ss.usermodel.Sheet sheet,
int firstRow,
int lastRow,
int firstCol,
int lastCol)
Copyright © 2021 悟耘. All Rights Reserved.