DS Server

Javascript: TextPart.type Property

PropertyDeprecated|Introduced in 24.0

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.type

Examples

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.