TX Text Control .NET Server

RequestParagraphStyleCallback Function

Function

Description

Callback function for requesting a paragraph's style.

Syntax

function(<ParagraphStyle> style)

Examples

The following example demonstrates RequestParagraphStyleCallback in a practical document-editing workflow. Callback function for requesting a paragraph's style.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function requestParagraphStyleCallback(style) {
    console.log("style:", style);
}

TXTextControl.paragraphStyles.getItem("Heading 1", requestParagraphStyleCallback, onTxError);