TableColumnGap
New in version 5.0
TableColumnGap ( columnIndices ; gap )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
columnIndices | int[] | -1000..1000 | 0 | 0...all |
gap | num | -1000..1000 | 0 | Dimension:[pt] |
Examples
TableColumnGap(1;3.5)
TableColumnGap(1 2 3 10;20.5)
Description
| TABLE_COLUMN_GAP_01 |
1 | OpenDrawing(360;130) |
2 | |
3 | TableTexts("";" Row #1\t10\t1,234.21\t712\n Row #2\t25\t93.42\t3949\n Row #3\t268\t234.20\t6854\n Row #4\t185\t-1,692.21\t•••\n Row #5\t124\t198.50\t1000") |
4 | TableCellStyle(0;Verdana;15;plain;black) /* 0...all cells. */ |
5 | TableColumnAlignments(left;right;right;right) |
6 | TableColumnWidths(0;60;100;80) /* 1st column: 0...automatic column width. */ |
7 | /* Set up rows headers. */ |
8 | TableCellStyle(1 1 -1 1;Arial;15;plain;white) |
9 | TableCellBackground(1 1 -1 1;#88f) |
10 | TableColumnGap(1;3) /* 3px gap between column 1 and column 2. */ |
11 | /* Set up table. */ |
12 | TableCellBorderRect(1 2 -1 -1;1) |
13 | |
14 |
| TABLE_COLUMN_GAP_02 |
1 | OpenDrawing(320;160) |
2 | |
3 | TableTexts("";"\tA\tB\tC\r 1\t10\t1,234.21\t712\n 2\t25\t93.42\t3949\n 3\t268\t234.20\t6854\n 4\t185\t-1,692.21\t•••\n 5\t124\t198.50\t1000") |
4 | TableCellStyle(0;Verdana;15;plain;black) /* 0...all cells. */ |
5 | TableColumnAlignments(left;right;right;right) |
6 | TableColumnWidths(0;60;100;80) /* 1st column: 0...automatic column width. */ |
7 | /* Set up column headers. */ |
8 | /* [fromRow fromColumn toRow toColumn] -1...last row or last column */ |
9 | TableCellStyle(1 2 1 -1;Arial;15;plain;white) |
10 | TableCellBackground(1 2 1 -1;#88f) |
11 | TableCellBorderRect(1 2 1 -1;1) |
12 | TableRowGap(1;3) |
13 | /* Set up rows headers. */ |
14 | TableCellStyle(2 1 -1 1;Arial;15;plain;white) |
15 | TableCellBackground(2 1 -1 1;#88f) |
16 | TableCellBorderRect(2 1 -1 1;1) |
17 | TableColumnGap(1;3) |
18 | /* Set up table. */ |
19 | TableCellBorderRect(2 2 -1 -1;1) |
20 | |
21 |
See also TableRowGap() .