TableGetCellBorderColor

Description

Gets the border color of a table cell in the RichTextEdit control.

Applies to

RichTextEdit control

Syntax

long rtename.TableGetCellBorderColor(long tableID, long row, long column, integer borderType)

Argument

Description

tableID

The unique ID that identifies the table.

row The row number of the cell.
column The column number of the cell.
borderType

The border type to set the width. If not set, it means setting the width for all border types.

The following values are supported:

  • 1 -- Left border

  • 2 -- Top border

  • 3 -- Right border

  • 4 -- Left border


Return value

Long.

Returns the numeric value of the color. Values are 0 to &HFFFFFF. Returns -1 if it fails. Returns null if any argument is null.

Examples

The following example gets the right border color of the cell (2,2).

long ll_tableid,ll_rtn

ll_tableid = rte_1.TableInsert(3,4)

//get right border color
ll_rtn = rte_1.TableGetCellBorderColor(ll_tableid,2,2,3)