Javascript: TXTextControl.FrameStyle Enumeration
Description
Determines the style of a frame of an image, text frame, chart, barcode or drawing. The object has the following properties:
Members
| Member | Description |
|---|---|
| Single | The frame is drawn with a single line. |
| Double | The frame is drawn with a doubled line. |
Examples
The following example uses TXTextControl.FrameStyle.Single (the frame is drawn with a single line.) in a document-editing workflow.
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
);