回复 1楼xjy的帖子
请使用以下代码测试:
- TXTextControl.TableCellFormat format = new TXTextControl.TableCellFormat();
- format.BottomBorderColor = Color.Black;
- format.TopBorderColor = Color.Black;
- format.RightBorderColor = Color.Black;
- format.LeftBorderColor = Color.Black;
- format.BottomBorderWidth = 1;
- format.TopBorderWidth = 1;
- format.LeftBorderWidth = 1;
- format.RightBorderWidth = 1;
- this.textControl1.Tables.Add(3, 3, 20);
- foreach (TXTextControl.TableCell item in this.textControl1.Tables.GetItem(20).Cells)
- {
- item.CellFormat = format;
- }
复制代码 |