Javascript: FormattedText.subTextParts Property
Description
Gets the current subtextparts.
Syntax
<SubTextPartCollection> FormattedText.subTextPartsExamples
The following example demonstrates FormattedText.subTextParts in a practical document-editing workflow. It gets the current subtextparts.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.textParts.getMainText(function(formattedText) {
formattedText.subTextParts.getCount(function(count) {
console.log("sub text parts count:", count);
}, onTxError);
}, onTxError);Limitations
Read Only.