# SectionInsert Method

> Inserts a section break at the input position or a given text position, with the new section beginning on a new line or a new page; returns True on success.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > SectionInsert Method
- **264 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioninsert-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioninsert-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioninsert-method/llms-full.txt

---

Inserts a section break at the text input position or at a specified position.

Introduced: 14.0.

### Syntax

```vbscript
TXTextControl.SectionInsert BreakKind, TextPos
```

### Parameters

| Parameter | Description |
|---|---|
| BreakKind | Specifies the kind of the section break. It can be one of the following Constants: |
| TextPos | Specifies the text position at which the section is to be inserted. If this parameter is -1, the section break is inserted at the current text input position. |

#### BreakKind

| Value | Description |
|---|---|
| txBeginAtNewLine | The section begins on the next line with a new paragraph. |
| txBeginAtNewPage | The section begins on the next page with a new paragraph. |

### Return Value

The return value is True, if the section break could be added. Otherwise it is False.

### Data Types

| Name | Data type |
|---|---|
| BreakKind | Integer |
| TextPos | Long |
| Return value | Boolean |

### See Also

- [Programming Category: Sections and Pages](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/sections-pages/llms-full.txt)

---

## Nearby

- **Previous:** [SectionFormatDialog Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionformatdialog-method/llms-full.txt)
- **Next:** [SectionLength Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionlength-property/llms-full.txt)
