TableRowAtInputPos

Description

Gets the ID of the table row where the cursor locates. The row IDs start at 1 in every table in a RichTextEdit control and auto increments.

Applies to

RichTextEdit control

Syntax

long TableRowAtInputPos()

Return value

Long.

Returns the ID of the row at the current input position. Returns 0 if the current input position does not locate in a table, or multiple table cells are currently selected.

Examples

The following example gets the ID of the row at the current input position.

long ll_tableid,ll_rtn

ll_tableid = rte_1.TableInsert(3,4)
rte_1.TableCellSelect(ll_tableid,2,2)
ll_rtn = rte_1.TableRowAtInputPos()