Javascript: FormattedText.textChars Property
Description
Gets a collection of all text characters.
Syntax
<TextCharCollection> FormattedText.textCharsExamples
The following example demonstrates FormattedText.textChars in a practical document-editing workflow. It gets a collection of all text characters.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.textParts.getMainText(function(formattedText) {
formattedText.textChars.getCount(function(count) {
console.log("text chars count:", count);
}, onTxError);
}, onTxError);Limitations
Read Only.