Javascript: ParagraphFormat.getFrameLineColor Method
Description
Gets the color used for the frame lines of a paragraph.
Syntax
<void> ParagraphFormat.getFrameLineColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the color used for the frame lines of a paragraph. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates ParagraphFormat.getFrameLineColor in a practical document-editing workflow. It gets the color used for the frame lines of a paragraph.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.paragraphFormat.getFrameLineColor(
function(result) {
console.log("get frame line color result:", result);
},
onTxError
);