Javascript: TXTextControl.TextType Enumeration
Description
Specifies how a text is represented and interpreted.
Members
| Member | Description |
|---|---|
| Text | The text type is text and it is displayed as it is. |
| Number | The text is interpreted as a number. |
Examples
The following example uses TXTextControl.TextType.Text (the text type is text and it is displayed as it is.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function applyTextType(tableCellFormat) {
tableCellFormat.setTextType(
TXTextControl.TextType.Text,
function() {
console.log("set text type completed.");
},
onTxError
);
}