# Javascript: TXTextControl.SectionBreakKind Enumeration

> Specifies the kind of a section break.

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

---

### Description

Specifies the kind of a section break.

### Members

| Member | Description |
|---|---|
| BeginAtNewLine | The section begins on the next line with a new paragraph. |
| BeginAtNewPage | The section begins on the next page with a new paragraph. |

### Examples

The following example uses `TXTextControl.SectionBreakKind.BeginAtNewLine` (the section begins on the next line with a new paragraph.) in a document-editing workflow.

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

function applySectionBreakKind(sectionFormat) {
    sectionFormat.setBreakKind(
        TXTextControl.SectionBreakKind.BeginAtNewLine,
        function() {
            console.log("set break kind completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.SaveSettings.userPassword Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/userpassword-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.sections Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/sections-property/llms-full.txt)
