TableCellSelect

Description

Selects a table cell, a range of table cells, or a complete table in the RichTextEdit control.

Applies to

RichTextEdit control

Syntax

boolean rtename.TableCellSelect(long tableID, long row, long column)
boolean rtename.TableCellSelect(long tableID, long startRow, long startColumn, long endRow, long endColumn)

Argument

Description

tableID

The unique ID that identifies the table.

row The row number of the cell.
column The column number of the cell.
startRow The starting row number if it is to select a range of cells.
startColumn The starting column number if it is to select a range of cells.
endRow The ending row number if it is to select a range of cells.
endColumn The ending column number if it is to select a range of cells.

Return value

Boolean.

Returns true if the specified table cell/cells could be selected. Returns false if the specified table ID is invalid or the specified row or/and column number does not exist. Returns null if any argument is null.

Examples

The following example selects a single cell or the whole table:

long ll_tableid

ll_tableid = rte_1.TableInsert(3,4)

// Select a table cell
rte_1.TableCellSelect(ll_tableid,2,2)

// Selec a complete table
rte_1.TableCellSelect(ll_tableid,0,0)

The following example selects a range of table cells or the whole table:

long ll_tableid

ll_tableid = rte_1.TableInsert(3,4)

//Select a range of table cells
rte_1.TableCellSelect(ll_tableid,1,2,3,3)

//Select a complete table
rte_1.TableCellSelect(ll_tableid,0,0,0,0)