# Javascript: DocumentPermissions.allowFormattingStyles Property

> Gets or sets a value specifying whether formatting styles can be used to format the document.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: DocumentPermissions.allowFormattingStyles Property
- **164 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documentpermissions/allowformattingstyles-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documentpermissions/allowformattingstyles-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documentpermissions/allowformattingstyles-property/llms-full.txt

---

### Description

Gets or sets a value specifying whether formatting styles can be used to format the document.

### Syntax

```javascript
<boolean> DocumentPermissions.allowFormattingStyles
```

### Examples

The following example demonstrates `DocumentPermissions.allowFormattingStyles` in a practical document-editing workflow. It gets or sets a value specifying whether formatting styles can be used to format the document.

```javascript
const allowFormattingStyles = TXTextControl.documentPermissions.allowFormattingStyles;
console.log("allow formatting styles:", allowFormattingStyles);
```

---

## Nearby

- **Previous:** [Javascript: DocumentPermissions.allowFormatting Property](https://docs.textcontrol.com/ds-server/reference/javascript/documentpermissions/allowformatting-property/llms-full.txt)
- **Next:** [Javascript: DocumentPermissions.allowPrinting Property](https://docs.textcontrol.com/ds-server/reference/javascript/documentpermissions/allowprinting-property/llms-full.txt)
