# RequestSectionBreakKindCallback Function

> Callback function for requests expecting a SectionBreakKind value.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Function
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > RequestSectionBreakKindCallback Function
- **289 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestsectionbreakkindcallback/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestsectionbreakkindcallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestsectionbreakkindcallback/llms-full.txt

---

### Description

Callback function for requests expecting a [SectionBreakKind](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/sectionbreakkind-enumeration/llms-full.txt) value.

### Syntax

```javascript
function(<SectionBreakKind> breakKind)
```

### Examples

The following example demonstrates `RequestSectionBreakKindCallback` in a practical document-editing workflow. Callback function for requests expecting a SectionBreakKind value.

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

function requestSectionBreakKindCallback(breakKind) {
    console.log("break kind:", breakKind);
}

function useRequestSectionBreakKindCallback(sectionFormat) {
    sectionFormat.getBreakKind(requestSectionBreakKindCallback, onTxError);
}
```

---

## Nearby

- **Previous:** [RequestRulerBarScaleUnitCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestrulerbarscaleunitcallback/llms-full.txt)
- **Next:** [RequestSectionCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestsectioncallback/llms-full.txt)
