Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetCellTextAlignVert - method of object PmTable

Description:
Sets vertical text alignment of the cell.
Syntax:
SetCellTextAlignVert(Row As Long, Col As Long, Value As Long)
Calling:
oTable.SetCellTextAlignVert row,col,1
Parameters:
Row(Long) If the value is >=0 then it is a index of the row (zero-based index).
Value -2 means the last row.
Value -3 sets the value to all rows.
Col(Long) If the value is >=0 then it is a index of the column (zero-based index).
Value -2 means the last column.
Value -3 sets the value to all columns.
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 it cannot be used in the other.

In order to make the modification visible, it is necessary to call the Draw method.

 
The method can also be called in the graphic item events for Web Panels.
Example:
Sets the vertical text align of the second row.
Dim oTable
Set oTable = pMe.Items("/Ax0").Acx
oTable.SetCellTextAlignVert 1,-3,1
oTable.Draw
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice