raindrop110 发表于 2012-5-17 16:42:00

tx 14 表格位置

tx 14 表格位置 位置定位 1|Table|6|4 ,如何知道表格在textcontrol中的位置.

raindrop110 发表于 2012-5-17 17:18:00

ID 为1 的表格,有6行4列.我如何知道表格的位置呢?

iceman 发表于 2012-5-17 17:37:00

回复 1# raindrop110 的帖子

raindrop 110 你好,
可以通过以下代码获取 table 位置:
this.textControl1.Tables.Add(10, 10, 11);
TXTextControl.Table table = this.textControl1.Tables.GetItem(11);
textControl1.InputPosition = new TXTextControl.InputPosition(table.Cells.GetItem(1, 1).Start - 1);
TXTextControl.InputPosition tablePostion = textControl1.InputPosition;
页: [1]
查看完整版本: tx 14 表格位置