找回密码
 立即注册

QQ登录

只需一步,快速开始

yangjianlang
初级会员   /  发表于:2016-3-3 00:14  /   查看:3613  /  回复:3
QQ.jpg (22.61 KB, 下载次数: 70)

3 个回复

倒序浏览
gw0506
超级版主   /  发表于:2016-3-3 15:09:00
沙发
  1. int tableID = 10;
  2. textControl1.Tables.Add(6, 3, tableID);
  3. TXTextControl.Table table = textControl1.Tables.GetItem(tableID);
  4. table.Cells.GetItem(1, 1).Text = "Date / Time";
  5. table.Cells.GetItem(1, 2).Text = "Customer data";
  6. table.Cells.GetItem(1, 3).Text = "Result";
  7. textControl1.Selection.Start = table.Cells.GetItem(1, 1).Start - 1;
  8. textControl1.Selection.Length = table.Cells.GetItem(1, 3).Start - 1
  9.                                + table.Cells.GetItem(1, 3).Length;
  10. textControl1.Selection.Bold = true;
  11. textControl1.Selection.ParagraphFormat.Alignment = TXTextControl.HorizontalAlignment.Center;
  12. textControl1.Selection.Length = 0;
复制代码

评分

参与人数 1满意度 +5 收起 理由
yangjianlang + 5 问题已解决,谢谢!在TX Active中是Alignment=0有效。

查看全部评分

回复 使用道具 举报
yangjianlang
初级会员   /  发表于:2016-3-5 00:11:00
板凳
回复 2楼gw0506的帖子

问题已解决,谢谢!在TX Active中是Alignment=0有效。
回复 使用道具 举报
gw0506
超级版主   /  发表于:2016-3-8 17:44:39
地板
好的,本帖关闭。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部