Javascript: TextPart.type Property
Description
Obsolete. This property will be removed in one of the next versions. The Text part type. Possible values are "mainText", "headerFooter" and "textFrame".
Syntax
<string> TextPart.typeExamples
The following example demonstrates TextPart.type in a practical document-editing workflow. Obsolete. This property will be removed in one of the next versions. 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(textPart) {
const type = textPart.type;
console.log("type:", type);
}, onTxError);Limitations
Read Only.