TX Text Control .NET Server

Javascript: FormattedText.textPartType Property

Property|Introduced in 28.0

Description

Gets the Text part type. Possible values are "mainText", "headerFooter" and "textFrame".

Syntax

<string> FormattedText.textPartType

Examples

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.