# Javascript: StatusBarViewGenerator.setBorderStyle Method

> Obsolete. This method will be removed in one of the next versions. Since version 33.0 it's not possible to change the border style of the status bar anymore. Sets the border style of the status bar.

> **Note:** This is deprecated and should not be used in new work.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: StatusBarViewGenerator.setBorderStyle Method
- **391 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgenerator/setborderstyle-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgenerator/setborderstyle-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgenerator/setborderstyle-method/llms-full.txt

---

### Description

`Obsolete. This method will be removed in one of the next versions.` Since version 33.0 it's not possible to change the border style of the status bar anymore. Sets the border style of the status bar.

### Syntax

```javascript
<void> StatusBarViewGenerator.setBorderStyle(<StatusBarBorderStyle> value, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| value | The property value. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `StatusBarViewGenerator.setBorderStyle` in a practical document-editing workflow. Obsolete. This method will be removed in one of the next versions. Since version 33.0 it's not possible to change the border style of the status bar anymore. Sets the border style of the status bar.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.statusBar.setBorderStyle(
    TXTextControl.StatusBarBorderStyle.Fixed3D,
    function() {
        console.log("set border style completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: StatusBarViewGenerator.resetDisplayColors Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgenerator/resetdisplaycolors-method/llms-full.txt)
- **Next:** [Javascript: StatusBarViewGenerator.setColumnText Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgenerator/setcolumntext-method/llms-full.txt)
