回复 10楼UpLin的帖子
这两个值默认为0,如果您需要精准计算可以提前设置其值,代码如下:
- private void addTableToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.textControl1.Tables.Add(10,10,11);
- TXTextControl.Table tb = this.textControl1.Tables.GetItem(11);
- foreach (TXTextControl.TableCell cell in tb.Cells)
- {
- cell.CellFormat.TopTextDistance = 10;
- cell.CellFormat.BottomTextDistance = 10;
- }
- }
复制代码 |