MergeCells

ITable.MergeCells 方法

合并相邻单元格。

public ICell MergeCells(ICell cell1, ICell cell2, bool allowSplitting)
参数类型描述
cell1ICell要合并的单元格。
cell2ICell要合并的单元格。
allowSplittingBoolean如果为 True,则允许单元格拆分。

返回值

合并后的单元格。

另见