# SectionFormatDialog Method

> Opens the built-in dialog box for page margins, size and orientation, headers and footers, columns or page borders of the document or a section; True on change.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > SectionFormatDialog Method
- **308 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionformatdialog-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectionformatdialog-method/llms.txt
- **LLMs-Full URL:** 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.

Introduced: 14.0.

### Syntax

```vbscript
TXTextControl.SectionFormatDialog ActiveTab
```

### Parameters

| Parameter | Description |
|---|---|
| ActiveTab | Specifies the index of the tab, zero-based, that is displayed when the tabbed dialog box is opened. The following values are possible: |

#### ActiveTab

| Value | Description |
|---|---|
| 0 | The dialog box shows the tab for setting page margins, page size and orientation. |
| 1 | The dialog box shows the tab for setting headers and footers. |
| 2 | The dialog box shows the tab for setting column attributes. |
| 3 | The dialog box shows the tab for setting page borders. |

### Return Value

The method returns True when the user has changed one or more attributes. The method returns False when the formatting remains unchanged.

### Data Types

| Name | Data type |
|---|---|
| ActiveTab | Integer |
| 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)
- [Programming Category: Built-in Dialog Boxes](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/dialog-boxes/llms-full.txt)

---

## Nearby

- **Previous:** [SectionCurrent Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioncurrent-property/llms-full.txt)
- **Next:** [SectionInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioninsert-method/llms-full.txt)
