# EditMode Property

> Specifies whether the document can be edited, is protected, read only or password protected, with DocumentPermissions and editable regions for protected text.

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

---

Specifies whether the document is protected or can be freely edited and formatted.

### Syntax

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

| Setting | Description |
|---|---|
| 0 - Edit | (Default) This mode can be used to edit and display text. The cursor is the text I-beam cursor. |
| 1 - Protected | The document's text is displayed and text can be selected. Editing and formatting is restricted as specified through the [TXTextControl.DocumentPermissions](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/documentpermissions-property/llms-full.txt) property. The document can contain editable regions where editing and formatting remain possible. |
| 2 - Read only | This mode can be used to display text. Text input and selecting text with the mouse or the keyboard is not possible. The cursor is the standard arrow cursor. |
| 3 - Password Protected | The document's text is displayed and text can be selected. Editing and formatting is restricted as specified through the [TXTextControl.DocumentPermissions](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/documentpermissions-property/llms-full.txt) property. A dialog box to enter a password is opened to protect the mode. To unprotect the document the same password must be entered when the edit mode is reset to Edit. The set of permissions and the password are saved in the document in an encrypted form. |

### Data Types

Integer.

### See Also

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

---

## Nearby

- **Previous:** [EditableRegionUserName Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/editableregionusername-property/llms-full.txt)
- **Next:** [EnableAutomationServer Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/enableautomationserver-method/llms-full.txt)
