public final class MergeRegionContainer extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addMergedRegion(org.apache.poi.ss.util.CellRangeAddress res)
Add merged region.
|
void |
apply(org.apache.poi.ss.usermodel.Sheet sheet)
Apply all merged regions to sheet.
|
org.apache.poi.ss.util.CellRangeAddress |
findIntersectedRange(org.apache.poi.ss.util.CellRangeAddress res)
Find main region with current cell.
|
static MergeRegionContainer |
getContainer()
Singleton getInstance() method.
|
void |
mergeLeft(CellAddress address)
Merge with left cell.
|
void |
mergeUp(CellAddress address)
Merge with up cell.
|
public static MergeRegionContainer getContainer()
public void mergeUp(CellAddress address)
address - address of current cell.public void mergeLeft(CellAddress address)
address - address of current cell.public void addMergedRegion(org.apache.poi.ss.util.CellRangeAddress res)
res - merge regionpublic void apply(org.apache.poi.ss.usermodel.Sheet sheet)
sheet - sheet of docspublic org.apache.poi.ss.util.CellRangeAddress findIntersectedRange(org.apache.poi.ss.util.CellRangeAddress res)
res - range of current merge region.Copyright © 2019 CURS. All rights reserved.