# Javascript: StatusBarViewGenerator.getSectionText Method

> Gets the text in the 'Section' area of the status bar.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: StatusBarViewGenerator.getSectionText Method
- **304 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/getsectiontext-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/getsectiontext-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/getsectiontext-method/llms-full.txt

---

### Description

Gets the text in the 'Section' area of the status bar.

### Syntax

```javascript
<void> StatusBarViewGenerator.getSectionText(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

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

### Examples

The following example demonstrates `StatusBarViewGenerator.getSectionText` in a practical document-editing workflow. It gets the text in the 'Section' area of the status bar.

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

TXTextControl.statusBar.getSectionText(
    function(result) {
        console.log("get section text result:", result);
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: StatusBarViewGenerator.getSectionCounterText Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/getsectioncountertext-method/llms-full.txt)
- **Next:** [Javascript: StatusBarViewGenerator.getShowColumn Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/getshowcolumn-method/llms-full.txt)
