# Sections and Pages

> Set page size, margins, orientation, columns and borders for a document or section in TXTextControl, insert section breaks and select sections and pages.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Sections and Pages
- **2016 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/sections-pages/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/sections-pages/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/sections-pages/llms-full.txt

---

Page size, margins, columns and page borders apply to a whole `TXTextControl` document or to one of its sections. The members below read and set these settings, insert section breaks, select sections and pages and report when the page format changes or the input position moves to another page or section.

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.ColumnDistance`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/columndistance-property/llms-full.txt) | Sets the distance, in twips, between the columns on a page for the whole document or for a document's section. |
| [`TXTextControl.ColumnLineColor`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/columnlinecolor-property/llms-full.txt) | Returns or sets the color of a dividing line between two page columns, either for the whole document or for a certain section. |
| [`TXTextControl.ColumnLineWidth`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/columnlinewidth-property/llms-full.txt) | Returns or sets the width, in twips, of a dividing line between two page columns, either for the whole document or for a certain section. |
| [`TXTextControl.Columns`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/columns-property/llms-full.txt) | Returns or sets the number of columns on a page for the whole document or for a document's section. |
| [`TXTextControl.ColumnWidthsAndDistances`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/columnwidthsanddistances-property/llms-full.txt) | Returns or sets the number of columns on a page including its widths and distances for the whole document or for a document's section. |
| [`TXTextControl.PageBorderAttribute`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageborderattribute-property/llms-full.txt) | This property returns or sets page border attributes for the whole document or for a document's section. |
| [`TXTextControl.PageCount`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagecount-property/llms-full.txt) | Returns the number of pages, the document contains. |
| [`TXTextControl.PageHeight`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageheight-property/llms-full.txt) | Returns or sets the height of the page for the whole document or for a document's section. |
| [`TXTextControl.PageImage`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageimage-property/llms-full.txt) | Returns an image of the specified page which can be used with the **Picture** property of a **Form** object, **PictureBox** control or **Image** control. |
| [`TXTextControl.PageLength`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagelength-property/llms-full.txt) | Gets the number of characters of the page, including the page break character at the end of the page. |
| [`TXTextControl.PageMarginB`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagemarginb-property/llms-full.txt) | Returns or sets the bottom page margin for the whole document or for a document's section. |
| [`TXTextControl.PageMarginL`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagemarginl-property/llms-full.txt) | Returns or sets the left page margin for the whole document or for a document's section. |
| [`TXTextControl.PageMarginR`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagemarginr-property/llms-full.txt) | Returns or sets the right page margin for the whole document or for a document's section. |
| [`TXTextControl.PageMarginT`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagemargint-property/llms-full.txt) | Returns or sets the top page margin for the whole document or for a document's section. |
| [`TXTextControl.PageOrientation`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageorientation-property/llms-full.txt) | Returns or sets the page orientation, portrait or landscape. |
| [`TXTextControl.PageStart`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagestart-property/llms-full.txt) | Gets the number (one-based) of the page's first character. |
| [`TXTextControl.PageViewStyle`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageviewstyle-property/llms-full.txt) | Defines the kind of view to display the page background. |
| [`TXTextControl.PageWidth`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagewidth-property/llms-full.txt) | Returns or sets the width of the page for the whole document or for a document's section. |
| [`TXTextControl.SectionAtInputPos`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionatinputpos-property/llms-full.txt) | Returns the number of the section containing the current text input position. |
| [`TXTextControl.SectionBreakKind`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionbreakkind-property/llms-full.txt) | Returns or sets the kind of the section break the section starts with. |
| [`TXTextControl.SectionCount`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioncount-property/llms-full.txt) | Returns the number of sections, the document contains. |
| [`TXTextControl.SectionCurrent`](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). |
| [`TXTextControl.SectionLength`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionlength-property/llms-full.txt) | Gets the number of characters in the section. |
| [`TXTextControl.SectionRestartPageNumbering`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionrestartpagenumbering-property/llms-full.txt) | Returns or sets a value specifying whether page numbering is restarted at the beginning of a document section. |
| [`TXTextControl.SectionStart`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionstart-property/llms-full.txt) | Gets the number (one-based) of the section's first character. |

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.PageSelect`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageselect-method/llms-full.txt) | This method can be used to select the specified page. |
| [`TXTextControl.SectionFormatDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionformatdialog-method/llms-full.txt) | This method invokes the built-in dialog box to set page settings and to design the headers and footers either for the whole document or for a single section. |
| [`TXTextControl.SectionInsert`](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. |
| [`TXTextControl.SectionSelect`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionselect-method/llms-full.txt) | This method can be used to select the specified section. |

### Events

| Member | Description |
|---|---|
| [`TXTextControl.PageChanged`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagechanged-event/llms-full.txt) | Occurs when the text input position has been moved to another page. |
| [`TXTextControl.PageFormatChange`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageformatchange-event/llms-full.txt) | Occurs when the page format settings have been changed. |
| [`TXTextControl.SectionChanged`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionchanged-event/llms-full.txt) | Occurs when the text input position has been moved to another section. |

### Related Pages

- [Headers and Footers](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/headers-footers/llms-full.txt): headers, footers and page numbers.
- [Printing and Print Preview](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/printing/llms-full.txt): print documents and pages and choose the printer.
- [Text Formatting and Views](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/llms-full.txt): twips, view modes and the formatting area.

---

## Nearby

- **Previous:** [Headers and Footers](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/headers-footers/llms-full.txt)
- **Next:** [Stylesheet Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/stylesheet-formatting/llms-full.txt)
