Promotic

GetColWidth - method of the PmfTable object

Description:
Returns the table column width.
Syntax:
Long GetColWidth(Long nColArea, Long iCol, Long Type, String Unit)
Parameters:
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 number
Type(Long) Requested width type:
0 - Current column width
1 - The widest text of all rows
Unit(String) The unit in which the column width will be returned.
em - The value je in HTML 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).
px - Width in pixels
Return values:
Returns the column width (in units defined by the Unit parameter).
Note:
This method is also functional in Web panels.
See also:
Example1:
JavaScriptSelect and copy to clipboard

var nColWidth = oTable.GetColWidth(1, 5, 1, "px");

History:
Pm9.00.07: Created
PROMOTIC 9.0.22 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.