Description
Sets the gap (in twips) between the cell border and cell content in a table cell in the RichTextEdit control.
Applies to
Syntax
boolean rtename.TableSetCellTextGap(long tableID, long row, long column, integer gap)
boolean rtename.TableSetCellTextGap(long tableID, long row, long column, integer gapType, integer gap)
Argument |
Description |
---|---|
tableID |
The unique ID that identifies the table. |
row | The row number of the cell. |
column | The column number of the cell. |
gapType |
The gap type. Values include:
|
gap | The gap (in twips). Twip is a fabricated word meaning twentieth of a point (pt). |
Return value
Boolean.
Returns true if it succeeds, and false if it fails. If any argument is null, return null.
Examples
The following example sets the gap (in twips) between each border and the content in the specified cell:
long ll_tableid boolean lb_rtn ll_tableid = rte_1.TableInsert(3,4) lb_rtn = rte_1.TableSetCellTextGap(ll_tableid,2,2,20) messagebox("",string(lb_rtn))
The following example sets the gap (in twips) between the specified border and the content in the specified cell:
long ll_tableid boolean lb_rtn ll_tableid = rte_1.TableInsert(3,4) //right gap lb_rtn = rte_1.TableSetCellTextGap(ll_tableid,2,2,3,20) //bottom gap lb_rtn = rte_1.TableSetCellTextGap(ll_tableid,2,2,4,10)