RequestParagraphFormatCallback Function
Description
Callback function for requesting a paragraph's format.
Syntax
function(<ParagraphFormat> format)Examples
The following example demonstrates RequestParagraphFormatCallback in a practical document-editing workflow. Callback function for requesting a paragraph's format.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function requestParagraphFormatCallback(format) {
console.log("format:", format);
}
function useRequestParagraphFormatCallback(paragraphStyle) {
paragraphStyle.getParagraphFormat(requestParagraphFormatCallback, onTxError);
}