TableSetCellVertAlign
PowerScript function
Description
Sets the vertical align mode for the content in a table cell in the
RichTextEdit control.
Applies to
Syntax
|
1 |
boolean rtename.TableSetCellVertAlign(long tableID, long row, long column, integer align) |
|
Argument |
Description |
|---|---|
|
tableID |
The unique ID that identifies the table. |
| row | The row number of the cell. |
| column | The column number of the cell. |
| align |
The align mode of the content in the cell. The following
|
Return value
Boolean.
Returns true if it succeeds. Returns false if it fails. Returns null
if any argument is null.
Examples
The following example sets different vertical align modes for
different cells.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
long ll_tableid boolean lb_rtn ll_tableid = rte_1.TableInsert(3,4) rte_1.TableSetCellHeight(ll_tableid,2,2,1000) rte_1.TableSetCellText(ll_tableid,2,1,"Test1") rte_1.TableSetCellText(ll_tableid,2,2,"Test2") rte_1.TableSetCellText(ll_tableid,2,3,"Test3") //The text is aligned at the top of the cell lb_rtn = rte_1.TableSetCellVertAlign(ll_tableid,2,1,1) //The text is vertically centered lb_rtn = rte_1.TableSetCellVertAlign(ll_tableid,2,2,2) //The text is aligned at the bottom of the cell lb_rtn = rte_1.TableSetCellVertAlign(ll_tableid,2,3,3) |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest