MergeCellsInColumn() public method

Merge cells in given column starting with startRow and ending with endRow.
Added by arudoy patch: 11608
public MergeCellsInColumn ( int columnIndex, int startRow, int endRow ) : void
columnIndex int
startRow int
endRow int
return void
Example #1
0
 /// <summary>
 /// 合并单元格
 /// </summary>
 /// <param name="t"></param>
 /// <param name="isRows">true则合并同行不同列,false则合并同列不同行</param>
 /// <param name="index">合并行或列的索引</param>
 /// <param name="startIndex">开始的索引</param>
 /// <param name="endIndex">结束的索引</param>
 public static void mergeCells(Table t, bool isRows, int index, int startIndex, int endIndex)
 {
     if (isRows)
     {
         t.Rows[index].MergeCells(startIndex, endIndex);
     }
     else
     {
         t.MergeCellsInColumn(index, startIndex, endIndex);
     }
 }