# DocumentPermissions Property

> Specifies what is allowed in a protected document: formatting, styles, copying, printing, read only or editing form fields; values can be added together.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > DocumentPermissions Property
- **254 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/documentpermissions-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/documentpermissions-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/documentpermissions-property/llms-full.txt

---

Specifies settings determining how the document can be edited and formatted, when the [EditMode](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/editmode-property/llms-full.txt) is changed from **Edit** to **Protected** or **Password Protected**.

Introduced: 25.0.

### Syntax

```vbscript
TXTextControl.DocumentPermissions [= value]
```

| Setting | Description |
|---|---|
| txAllowFormatting (1) | Allows formatting text with settings such as font and paragraph attributes. |
| txAllowFormattingStyles (2) | Allows formatting text with formatting styles. |
| txAllowCopy (4) | Allows copying document content to the clipboard. |
| txAllowPrinting (8) | Printing the document is allowed. |
| txReadOnly (16) | The document is read only, editing and formatting text is not allowed. |
| txAllowEditingFormFields (2048) | Form fields can be edited. |

### Data Types

Integer.

### Remarks

The values listed above can be added to set more than one option.

### See Also

- [Programming Category: Restricted Document Access](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/restricted-access/llms-full.txt)

---

## Nearby

- **Previous:** [DisplayColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/displaycolor-property/llms-full.txt)
- **Next:** [EditableRegionDelete Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/editableregiondelete-method/llms-full.txt)
