Javascript: ParagraphFormat.setFrameStyle Method
Description
Sets the style of the paragraph's frame.
Syntax
<void> ParagraphFormat.setFrameStyle(<FrameStyle> frameStyle, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| frameStyle | The style of the paragraph's frame. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates ParagraphFormat.setFrameStyle in a practical document-editing workflow. It sets the style of the paragraph's frame.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.paragraphFormat.setFrameStyle(
TXTextControl.FrameStyle.Single,
function() {
console.log("set frame style completed.");
},
onTxError
);