TableAtInputPos

Description

Gets the ID of the table in the RichTextEdit control where the cursor locates.

Applies to

RichTextEdit control

Syntax

long rtename.TableAtInputPos()

Return value

Long.

Returns the ID of the table where the cursor locates.

Returns 0 if the cursor does not locate in a table, or multiple table cells are currently selected.

Examples

This example returns the ID of the table in the current RichTextEdit control.

long ll_rtn
ll_rtn = rte_1.TableAtInputPos()