回复 1楼mindrayguowei的帖子
通过这个代码没有重现这个问题:
- this.textControl1.Text = "";
- this.textControl1.Tables.Add(1, 1, 11);
- this.textControl1.Selection.Text = "\n";
- this.textControl1.Tables.Add(1, 1, 12);
复制代码
不过您可以通过遍历单元格来解决这个问题:
- foreach (TXTextControl.Table table in this.textControl1.Tables)
- {
- foreach (TXTextControl.TableCell cell in table.Cells)
- {
- cell.Text = "ceshi";
- this.textControl1.Select(cell.Start,cell.Length);
- this.textControl1.Selection.Bold = false;
- }
- }
复制代码 |