|
This sample shows how to format tables. It is shown how to set the table border
or the background color of a specific table row.
Important code snippet:
|
1: serverTextControl1.Tables.Add(10, 5, 13);
' set the table border width
2: foreach(TXTextControl.TableCell cell in
serverTextControl1.Tables.GetItem(13).Cells)
3: {
4: cell.CellFormat.LeftBorderWidth = 1;
5: cell.CellFormat.RightBorderWidth = 1;
6: cell.CellFormat.TopBorderWidth = 1;
7: cell.CellFormat.BottomBorderWidth = 1;
8: }
|
|