Width | (Variant) Column(s) width.
Integer - The value is in CSS units "em". 1em equals to the current font size.
For example if the document font size is 12pt then 1em equals to 12pt (0.5em = 6pt, 2em = 24pt). String - Value in pixels (for example "50px").
This setting is only temporary, it means after the column width is calculated based on current data the setting is no longer remembered and after the data is changed the width is not recalculated. |
---|---|
nColArea | (Long) Detecting the area of the table (see Areas in the table).
1 - Main area of the table
2 - Left area of the table |
iCol | (Long) Column index (zero-based index, -1 = the last column) |
nCount | [optional] (Long) Number of columns to set the width to.
- If not set, then the value is 1.
- If iCol=-1 (i.e. the last column) then it is the number of last columns (otherwise it is a number of columns since index iCol).
- If nCount=-1 then it is the number of columns from the index iCol to the last column.
Note: It is not possible to enter iCol=-1 and simultaneously nCount=-1. |
oTable.SetColWidth(10, 1, 5, 1);