TableColumnAtInputPos

Description

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

Applies to

RichTextEdit control

Syntax

long rtename.TableColumnAtInputPos()

Return value

Long.

Returns the ID of the column 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 column 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.TableColumnAtInputPos()