TableGetCellTextGap
PowerScript function
Description
Gets the gap (in twips) between the cell border and cell content in
a table cell in the RichTextEdit control.
Applies to
Syntax
|
1 |
integer rtename.TableGetCellTextGap(long tableID, long row, long column, integer gapType) |
|
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:
|
Return value
Integer.
Returns the gap if it succeeds, and -1 if it fails. If any argument
is null, return null.
Examples
The following example gets the gap (in twips) between the specified
border and the content in the specified cell:
|
1 2 3 4 5 6 7 8 9 |
long ll_tableid integer li_rtn ll_tableid = rte_1.TableInsert(3,4) //left gap li_rtn = rte_1.TableGetCellTextGap(ll_tableid,2,2,1) //top gap li_rtn = rte_1.TableGetCellTextGap(ll_tableid,2,2,2) |