TableCellStart

Description

Returns the starting position of a table cell in the RichTextEdit control.

The starting position is the character index (starting at 1) of the first character of the table cell in the RichTextEdit control. If there are new line characters in the content, each new line character is counted as one character too. If the RichTextEdit control contains header and footer, the character indexes of the header, footer and main content are accumulated separately.

Applies to

RichTextEdit control

Syntax

long rtename.TableCellStart(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.

Return value

Long.

Returns the starting position of a table cell in the RichTextEdit control if it succeeds. Returns 0 if it fails. Returns null if any argument is null.

Examples

The following example returns the starting position of the first character in the specified table cell:

long ll_tableid,ll_rtn

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