TableSetCellVertAlign

Description

Sets the vertical align mode for the content in a table cell in the RichTextEdit control.

Applies to

RichTextEdit control

Syntax

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 modes are supported:

  • 1 -- The text is aligned at the top of the cell.

  • 2 -- The text is vertically centered.

  • 3 -- The text is aligned at the bottom of the cell.


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.

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)