Description
Sets the back color (in twips) for a table cell in the RichTextEdit control.
Applies to
Syntax
boolean rtename.TableSetCellBorderColor(long tableID, long row, long column, long color)
boolean rtename.TableSetCellBorderColor(long tableID, long row, long column, integer borderType, 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”. |
borderType |
The border type. If not set, it means setting the color for all border types. The following values are supported:
|
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 border 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) rte_1.TableSetCellBorderWidth(ll_tableid,2,2,25) lb_rtn = rte_1.TableSetCellBorderColor(ll_tableid,2,2,255)
The following example sets different colors for different borders for the cell (2,2).
long ll_tableid boolean lb_rtn ll_tableid = rte_1.TableInsert(3,4) rte_1.TableSetCellBorderWidth(ll_tableid,2,2,25) //right border lb_rtn = rte_1.TableSetCellBorderColor(ll_tableid,2,2,3,255) //bottom border lb_rtn = rte_1.TableSetCellBorderColor(ll_tableid,2,2,4,65280)