Fri Aug 05, 2022 10:09 am
Hello,
Thanks for your inquiry.
You can refer to the following code to judge the merged state of a cell and also here is a sample screenshot for your reference.
- Code: Select all
//Get Horizontal merge state
CellMerge hMerge=cell.getCellFormat().getHorizontalMerge();
//Get Vertical merge state
CellMerge vMerge=cell.getCellFormat().getVerticalMerge();
//judge the merged state of a cell
switch (hMerge){
case Start:
//The first cell of a cell merger
break;
case Continue:
//The middle cell of a cell merger
break;
case None:
//No merge cell
break;
}
3CCCF496-0E36-429c-8070-27DFEBDCD015.png
Login to view the files attached to this post.
Sincerely,
Andy
E-iceblue support team