mindrayguowei 发表于 2015-10-29 13:39:00

不同的Table中字体不一样问题

如图,这是两个Table框,第一个框里面输入的不是粗体,第二个是粗体,如何改成默认全部都不是粗体?

iceman 发表于 2015-10-29 14:14:00

回复 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;
                }
            }

iceman 发表于 2015-11-9 09:24:00

回复 1楼mindrayguowei的帖子

请问问题是否解决?为了给你提供更优质的服务,请对本次服务进行评分。
我们会认真对待你提出的宝贵意见。您可以关注我们的微信服务号(微信号:GrapeCityDT),帖子有回复时可即时收到提醒,便于您第一时间查看,尽快解决技术问题。关注即可获得300金币用于兑换礼品。
谢谢
http://gcdn.gcpowertools.com.cn/attachment.aspx?attachmentid=10062
页: [1]
查看完整版本: 不同的Table中字体不一样问题