厂商一直没有回复,我是自己又帮你研究了下,找到了原因,应该是枚举器的原因
- Table tb = (Table)_textControl.Tables.GetItem(0);
- tb.Cells.GetItem(1, 1).Text="22";
- tb.Cells.GetItem(1, 1).CellFormat = new TableCellFormat() {
- BackColor=Color.AliceBlue,
- LeftBorderColor = Color.Red,
- TopBorderColor = Color.Red,
- BottomBorderColor = Color.Red,
- RightBorderColor = Color.Red,
- LeftBorderWidth = 1,
- TopBorderWidth = 1,
- RightBorderWidth = 1,
- BottomBorderWidth = 1
- };
- tb.Rows.GetItem(3).CellFormat = new TableCellFormat()
- {
- LeftBorderColor = Color.Black,
- TopBorderColor = Color.Black,
- BottomBorderColor = Color.Black,
- RightBorderColor = Color.Black,
- LeftBorderWidth = 1,
- TopBorderWidth = 1,
- RightBorderWidth = 1,
- BottomBorderWidth = 1
- };
复制代码 |