DS Server

Javascript: TXTextControl.FrameStyle Enumeration

Enumeration|Introduced in 26.0

Description

Determines the style of a frame of an image, text frame, chart, barcode or drawing. The object has the following properties:

Members

MemberDescription
SingleThe frame is drawn with a single line.
DoubleThe 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
);

Further Reading

  • Displaying a Frame Around a Paragraph –