Javascript: FootnoteCollection.getHighlightMode Method
Description
Gets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.
Syntax
<void> FootnoteCollection.getHighlightMode(<RequestHighlightModeCallback> 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.getHighlightMode in a practical document-editing workflow. It gets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.footnotes.getHighlightMode(
function(result) {
if (!result) {
console.warn("No highlight mode was returned.");
return;
}
console.log("get highlight mode result:", result);
},
onTxError
);