# Javascript: TXTextControl.FrameStyle Enumeration

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 26.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.FrameStyle Enumeration
- **259 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/framestyle-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/framestyle-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/framestyle-enumeration/llms-full.txt

---

### 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.

```javascript
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
);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.FrameInsertionMode Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/frameinsertionmode-enumeration/llms-full.txt)
- **Next:** [Javascript: TXTextControl.getActivationState Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/getactivationstate-method/llms-full.txt)
