TableSetCellNumberFormat

Description

Sets the number format for a table cell in the RichTextEdit control.

Applies to

RichTextEdit control

Syntax

boolean rtename.TableSetCellNumberFormat(long tableID, long row, long column, string format)

Argument

Description

tableID

The unique ID that identifies the table.

row The row number of the cell.
column The column number of the cell.
format The number format to use. The format string shall have a format as described in Office Open XML File Formats - ISO/IEC 29500 - 1, Chapter: 18.8.31 Number Formats. For example: ”###.##”, ”###.00”, "$#,##0", "0%", and so on.

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 number format for the table cell (1,1) to "###.##". As the result, the number 132.2 will display as 132.20 in the cell.

boolean lb_rtn
long ll_tableid

ll_tableid = rte_1.TableInsert(3,4)
rte_1.TableSetCellTextType(ll_tableid,2,2,1)
rte_1.TableSetCellNumberFormat(ll_tableid,2,2,"###.##")
rte_1.TableSetCellText(ll_tableid,2,2,"132.2")