Update cookies preferences
Promotic

SetCellTextAlignVert - method of the PmgWTable object

Description:
Sets vertical cell text alignment.
Syntax:
Empty SetCellTextAlignVert(Long Row, Long Col, Long Value)
Parameters:
Row(Long) If the value is greater or equal 0 then it is a row index (zero-based index, counted including the fixed part).
Value -2 means the last row.
Value -3 sets the value in all rows (counted including the fixed part).
Col(Long) If the value is greater or equal 0 then it is a column index (zero-based index, counted including the fixed part).
Value -2 means the last column.
Value -3 sets the value in all columns (counted including the fixed part).
Value(Long) The new value to be written.
0 - Up
1 - Center
2 - Down
Note:
It is not possible to set the value -3 in both parameters Row and Col; if the value is set in one parameter, then cannot be used in the other.
In order to make the modification visible, it is necessary to call the Draw method.

This method is also functional in Web panels.
Example:
Sets the vertical text alignment of the 2nd row. - Center:
JavaScriptVBScriptSelect and copy to clipboard

var oTable = pMe.Items("/Table");
oTable.SetCellTextAlignVert(1, -3, 1);
oTable.Draw();

History:
Pm8.02.00: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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