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);

 

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