# SectionCurrent Property

> Sets or returns the section that page size, margins, orientation, headers and footers, columns and page borders apply to: one section, all or the selected ones.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > SectionCurrent Property
- **571 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioncurrent-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioncurrent-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioncurrent-property/llms-full.txt

---

Returns or sets the section number for the following properties and methods: [PageWidth](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagewidth-property/llms-full.txt), [PageHeight](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageheight-property/llms-full.txt), [PageMarginL](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagemarginl-property/llms-full.txt), [PageMarginT](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagemargint-property/llms-full.txt), [PageMarginR](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagemarginr-property/llms-full.txt), [PageMarginB](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagemarginb-property/llms-full.txt), [PageOrientation](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageorientation-property/llms-full.txt), [HeaderFooter](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooter-property/llms-full.txt), [HeaderFooterActivate](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooteractivate-method/llms-full.txt), [HeaderFooterSelect](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterselect-method/llms-full.txt), [HeaderFooterPosition](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterposition-property/llms-full.txt), [HeaderFooterConnectedToPrevious](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterconnectedtoprevious-property/llms-full.txt), [Columns](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/columns-property/llms-full.txt), [PageBorderAttribute](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageborderattribute-property/llms-full.txt), [ColumnDistance](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/columndistance-property/llms-full.txt), [ColumnLineWidth](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/columnlinewidth-property/llms-full.txt), [ColumnLineColor](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/columnlinecolor-property/llms-full.txt), [ColumnWidthsAndDistances](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/columnwidthsanddistances-property/llms-full.txt), [SectionRestartPageNumbering](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionrestartpagenumbering-property/llms-full.txt), and [SectionBreakKind](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionbreakkind-property/llms-full.txt). The section number can either be the number of a section, beginning with 1, or a value specifying all sections of the document or all selected sections.

Introduced: 14.0.

### Syntax

```vbscript
TXTextControl.SectionCurrent [= SectionNumber]
```

| Setting | Description |
|---|---|
| 0 | (Default) All sections of the document. |
| -1 | The section with the text input position or all selected sections. |
| Otherwise | The number of a section. Sections are numbered from the beginning to the end of a document beginning with 1. |

### Data Types

Integer.

### Limitations

Run time only.

### See Also

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

---

## Nearby

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