TableCellBorderTop
New in version 5.0
TableCellBorderTop ( rowIndices ; columnIndices ; borderStroke ; borderColor ; borderColorVariant )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
rowIndices | int[] | -1000..1000 | 0 | 0...all |
columnIndices | int[] | -1000..1000 | 0 | 0...all |
borderStroke | num[] | 0..1000 | 1 | Dimension:[pt] |
borderColor | rgba | 0..255 | black | |
borderColorVariant | int | -1..128 | solid |
Examples
TableCellBorderTop(2;1 -1;1;red)
TableCellBorderTop(2 4 6;2 -1;1;red)
Description
Cells are referenced by the row and column index. For example:
TableCellBackground( 5 3;yellow) /* Cell in row 5, column 3. */
TableCellBackground( 5 -1;yellow) /* Cell in row 5, last column. */
TableCellBackground(-1 -1;yellow) /* Cell in last row, last column. */
TableCellBackground( 5 -2;yellow) /* Cell in row 5, second last column. */
TableCellBackground(-3 -2;yellow) /* Cell in third last row, second last column. */
| TABLE_CELL_BORDER_TOP_01 |
1 | OpenDrawing(300;130) |
2 | |
3 | TableTexts("";"10\t1,234.21\t712\n25\t93.42\t3949\n268\t234.20\t6854\n185\t-1,692.21\t•••\n124\t198.50\t1000") |
4 | TableCellStyle(0;Verdana;15;plain;black) /* 0..all cells. */ |
5 | TableColumnAlignments(right;right;right) |
6 | TableColumnWidths(0;100;80) /* 1st column: 0...automatic column width. */ |
7 | TableCellBorderTop( 1;2;1;red) /* Add top line to 1st row, 2nd column. */ |
8 | TableCellBorderTop(-2;2;1;red) /* Add top line to 2nd last row, 2nd column. */ |
9 | |
10 |
| TABLE_CELL_BORDER_TOP_02 |
1 | OpenDrawing(300;130) |
2 | |
3 | TableTexts("";"10\t1,234.21\t712\n25\t93.42\t3949\n268\t234.20\t6854\n185\t-1,692.21\t•••\n124\t198.50\t1000") |
4 | TableCellStyle(0;Verdana;15;plain;black) /* 0..all cells. */ |
5 | TableColumnAlignments(right;right;right) |
6 | TableColumnWidths(0;100;80) /* 1st column: 0...automatic column width. */ |
7 | TableCellBorderTop(2;1 -1;1;red) /* Top line along second row. */ |
8 | |
9 |