Javascript: FormattedText.textPartType Property
Description
Gets the Text part type. Possible values are "mainText", "headerFooter" and "textFrame".
Syntax
<string> FormattedText.textPartTypeExamples
The following example demonstrates FormattedText.textPartType in a practical document-editing workflow. It gets the Text part type. Possible values are "mainText", "headerFooter" and "textFrame".
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.textParts.getMainText(function(formattedText) {
const textPartType = formattedText.textPartType;
console.log("text part type:", textPartType);
}, onTxError);Limitations
Read Only.