Description
Sets the text content in a table cell in the RichTextEdit control.
Applies to
Syntax
boolean rtename.TableSetCellText(long tableID, long row, long column, string text)
Argument |
Description |
---|---|
tableID |
The unique ID that identifies the table. |
row | The row number of the cell. |
column | The column number of the cell. |
Text | The text to assign to the cell. |
Return value
Boolean.
Returns true if it succeeds. Returns false if it fails. Returns null if any argument is null.
Note
If the WordWrap property of the cell is false, if the text cannot display in one line in the cell, the function will return true but the text is not assigned to the cell. To make sure long text can be assigned to the cell by this function, please set the WordWrap property to true.
Examples
The following example sets the text in the specified cell:
long ll_tableid boolean lb_rtn ll_tableid = rte_1.TableInsert(3,4) rte_1.TableSetCellTextType(ll_tableid,2,2,1) lb_rtn = rte_1.TableSetCellText(ll_tableid,2,2,"10.24")