Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetCellTextAlign - method of object PmgWTable

Description:
Returns text alignment of the cell.
Syntax:
Long GetCellTextAlign(Long Row, Long Col)
Calling:
nAlign = oTable.GetCellTextAlign(row, col)
Parameters:
Row(Long) If the value is greater or equal 0 then it is a index of the row (zero-based index, counted including the fixed part).

Value -2 means the last row.

Col(Long) If the value is greater or equal 0 then it is a index of the column (zero-based index, counted including the fixed part).

Value -2 means the last column.

Return Values:
0 - Left
1 - Center
2 - Right
Note:

This method is also functional for Web panels.

Example:
Read the text alignment info of the cell on the 2nd row and 5th column.
JavaScriptVBScriptSelect and copy to clipboard

var oTable = pMe.Items("/Table");
var nAlign = oTable.GetCellTextAlign(1, 4);

History:
Pm8.02.00: Created
PROMOTIC 9.0.4 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