Javascript: TXTextControl.Frame Enumeration
Description
Determines which frame borders are visible of an image, text frame, chart, barcode or drawing.
Members
| Member | Description |
|---|---|
| LeftLine | Left frame line. |
| RightLine | Right frame line. |
| TopLine | Frame line at the top. |
| BottomLine | Frame line at the bottom. |
| Box | Complete frame. |
| MergedBox | The paragraph has a complete frame. If the following or the previous paragraph also has a frame, the frames are merged to a single frame. |
| None | No frame. |
Examples
The following example uses TXTextControl.Frame.LeftLine (left frame line.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.paragraphFormat.setFrame(
TXTextControl.Frame.LeftLine,
function() {
console.log("set frame completed.");
},
onTxError
);