TableGetCellVertAlign

Description

Gets the vertical align mode of the content in a table cell in the RichTextEdit control.

Applies to

RichTextEdit control

Syntax

integer rtename.TableGetCellVertAlign(long tableID, long row, long column)

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 the align mode if it succeeds. Returns -1 if it fails. Returns null if any argument is null.

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.

Examples

The following example gets the vertical align modes of the specified cell.

long ll_tableid
integer li_rtn

ll_tableid = rte_1.TableInsert(3,4)
li_rtn = rte_1.TableGetCellVertAlign(ll_tableid,2,2)
messagebox("TableGetCellVertAlign",string(li_rtn))