MergeCells 要如何使用?我查看table的CanMergeCells属性,为false,什么情况下变为true?
我有一个table,5列,想把后4列合并,怎么操作?
我的代码:- TableCell cell2 = table.Cells.GetItem(1, 2);
- TableCell cell3 = table.Cells.GetItem(1, 3);
- TableCell cell4 = table.Cells.GetItem(1, 4);
- TableCell cell5 = table.Cells.GetItem(1, 5);
- textControl.Selection.Start = cell2.Start - 1;
- textControl.Selection.Length = cell2.Length + cell3.Length + cell4.Length + cell5.Length;
- bool b = table.MergeCells();//为false
- textControl.Selection.Length = 0;
复制代码 |
|