Description
Sets the border width (in twips) for a table cell in the RichTextEdit control.
Applies to
Syntax
boolean rtename.TableSetCellBorderWidth(long tableID, long row, long column, integer width)
boolean rtename.TableSetCellBorderWidth(long tableID, long row, long column, integer borderType, integer width)
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:
|
width | The border width (in twips). Twip is a fabricated word meaning twentieth of a point (pt). |
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 width for the cell (2,2) to be 25 twips.
long ll_tableid boolean lb_rtn ll_tableid = rte_1.TableInsert(3,4) lb_rtn = rte_1.TableSetCellBorderWidth (ll_tableid,2,2,25)
The following example sets the border width for the specified border types for the cell (2,2) to be 25 twips.
long ll_tableid boolean lb_rtn ll_tableid = rte_1.TableInsert(3,4) //right border lb_rtn = rte_1.TableSetCellBorderWidth(ll_tableid,2,2,3,25) //bottom border lb_rtn = rte_1.TableSetCellBorderWidth(ll_tableid,2,2,4,25) messagebox("",string(lb_rtn))