回复 8楼DCAgile的帖子
设置Border测试代码如下:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.textControl1.Tables.Add(10, 10, 11);
- this.textControl1.Selection.Text = "\n\n\n\n";
- this.textControl1.Tables.Add(10, 10, 12);
- this.textControl1.Tables.GridLines = false;
- }
- private void setBorderToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Table tb = this.textControl1.Tables.GetItem(11);
-
- foreach (TableCell cell in this.textControl1.Tables.GetItem(11).Cells)
- {
- cell.CellFormat.TopBorderWidth = 20;
- cell.CellFormat.LeftBorderWidth= 20;
- cell.CellFormat.RightBorderWidth = 20;
- cell.CellFormat.BottomBorderWidth = 20;
- }
- }
复制代码 |