# Javascript: Selection.paragraphFormat Property

> Gets the formatting attributes of the selected paragraphs.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: Selection.paragraphFormat Property
- **143 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/selection/paragraphformat-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/selection/paragraphformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/selection/paragraphformat-property/llms-full.txt

---

### Description

Gets the formatting attributes of the selected paragraphs.

### Syntax

```javascript
<ParagraphFormat> Selection.paragraphFormat
```

### Examples

The following example demonstrates `Selection.paragraphFormat` in a practical document-editing workflow. It gets the formatting attributes of the selected paragraphs.

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

### Limitations

Read Only.

---

## Nearby

- **Previous:** [Javascript: Selection.load Method](https://docs.textcontrol.com/ds-server/reference/javascript/selection/load-method/llms-full.txt)
- **Next:** [Javascript: Selection.removeFormatting Method](https://docs.textcontrol.com/ds-server/reference/javascript/selection/removeformatting-method/llms-full.txt)
