TableGetCellTextGap

Description

Gets the gap (in twips) between the cell border and cell content in a table cell in the RichTextEdit control.

Applies to

RichTextEdit control

Syntax

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:

  • 1 -- The gap between the left border and the content

  • 2 -- The gap between the top border and the content

  • 3 -- The gap between the right border and the content

  • 4 -- The gap between the bottom border and the content


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:

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)