关于插入的表格颜色问题
在编辑器插入表格默认的表格颜色为灰色,在生成的pdf中不显示表格,有没有办法默认插入的表格颜色显示为黑色,在生成的pdf中显示表格 回复 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;
}
页:
[1]