EAS BOS KDTable行融合、列融合

//获取融合管理器
//调用mergeBlock方法
//传入需要融合的开始行,开始列,结束行,结束列,融合方式

//同列的多行融合
KDTMergeManager merge = kdtEntry.getMergeManager();//融合管理器
int col = kdtEntry.getColumnIndex("area");
merge.mergeBlock(startRow, col, endRow, col, KDTMergeManager.FREE_ROW_MERGE);

//同行的多列融合
int rowIndex = row.getRowIndex();
merge.mergeBlock(rowIndex, startCol, rowIndex, endCol, KDTMergeManager.FREE_COLUMN_MERGE);

//合计行的多列融合
FootManager footMnaager = kdtEntry.getFootManager();
KDTMergeManager footMerge = kdtEntry.getMergeManager()footManager.getMergeManager();
int rowIndex = footManager.getFootRow(0).getRowIndex();
merge.mergeBlock(rowIndex, startCol, rowIndex, endCol, KDTMergeManager.FREE_COLUMN_MERGE);

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章