# Javascript: Selection.sectionFormat Property

> Gets page settings such as margins, size and orientation for the selected text.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: Selection.sectionFormat Property
- **148 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/sectionformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/sectionformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/sectionformat-property/llms-full.txt

---

### Description

Gets page settings such as margins, size and orientation for the selected text.

### Syntax

```javascript
<SectionFormat> Selection.sectionFormat
```

### Examples

The following example demonstrates `Selection.sectionFormat` in a practical document-editing workflow. It gets page settings such as margins, size and orientation for the selected text.

```javascript
const sectionFormat = TXTextControl.selection.sectionFormat;
console.log("section format:", sectionFormat);
```

### Limitations

Read Only.

---

## Nearby

- **Previous:** [Javascript: Selection.save Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/save-method/llms-full.txt)
- **Next:** [Javascript: Selection.setAutoBaseline Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/setautobaseline-method/llms-full.txt)
