Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetColWidth - method of the PmfTable object

Description:
Reading 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) Unit
em - The value is in HTML units "em". 1em equals to the current font size. For example if the document font is 12pt then 1em equals to 12pt (0.5em = 6pt, 2em = 24pt).
px - Width in pixels
Return values:
Returns column width (in the number of characters).
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.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice