Javascript: FootnoteCollection.getNumberFormat Method
Description
Gets the footnotes' number format.
Syntax
<void> FootnoteCollection.getNumberFormat(<RequestNumberFormatCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the property value. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates FootnoteCollection.getNumberFormat in a practical document-editing workflow. It gets the footnotes' number format.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.footnotes.getNumberFormat(
function(result) {
if (!result) {
console.warn("No number format was returned.");
return;
}
console.log("get number format result:", result);
},
onTxError
);