TableGetCellBorderWidth

Description

Gets the border width (in twips) of a table cell in the RichTextEdit control.

Applies to

RichTextEdit control

Syntax

integer rtename.TableGetCellBorderWidth(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

Integer.

Returns the border width. Returns -1 if it fails. Returns null if any argument is null.

Examples

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

long ll_tableid
integer li_rtn

ll_tableid = rte_1.TableInsert(3,4)
//left border
li_rtn = rte_1.TableGetCellBorderWidth(ll_tableid,2,2,1)

//top border
li_rtn = rte_1.TableGetCellBorderWidth(ll_tableid,2,2,2)