TableSetCellBackColor

Description

Sets the back color (in twips) for a table cell in the RichTextEdit control.

Applies to

RichTextEdit control

Syntax

boolean rtename.TableSetCellBackColor(long tableID, long row, long column, long color)

Argument

Description

tableID

The unique ID that identifies the table.

row The row number of the cell.
column The column number of the cell.
color Specifies the numeric value of the color. Values are 0 to &HFFFFFF. For more information about color, see the section called “RGB”.

Return value

Boolean.

Returns true if it succeeds. Returns false if it fails. Returns null if any argument is null.

Examples

The following example sets the back color for the cell (2,2) to be red (RGB value: 255).

long ll_tableid
boolean lb_rtn

ll_tableid = rte_1.TableInsert(3,4)
lb_rtn = rte_1.TableSetCellBackColor(ll_tableid,2,2,255)