# TextControl.DocumentPermissions Property

> Gets a DocumentPermissions object which provides properties determining how a document can be edited and formatted when the EditMode property is set to EditMode.ReadAndSelect.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.DocumentPermissions Property
- **377 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/documentpermissions-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/documentpermissions-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/documentpermissions-property/llms-full.txt

---

### Description

Gets a [DocumentPermissions](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentpermissions/llms-full.txt) object which provides properties determining how a document can be edited and formatted when the [EditMode](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/editmode-property/llms-full.txt) property is set to `EditMode.ReadAndSelect`.

### Syntax

```csharp
public DocumentPermissions DocumentPermissions { get; }
```

```vbnet
Public ReadOnly Property DocumentPermissions As DocumentPermissions
```

### Examples

The following example makes a document read-only while still allowing users to print it.

```csharp
DocumentPermissions permissions = textControl.DocumentPermissions;
permissions.ReadOnly = true;
permissions.AllowPrinting = true;
```

```vbnet
Dim permissions As DocumentPermissions = textControl.DocumentPermissions
permissions.ReadOnly = True
permissions.AllowPrinting = True
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextControl.DocumentLoaded Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/documentloaded-event/llms-full.txt)
- **Next:** [TextControl.DocumentSettings Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/documentsettings-property/llms-full.txt)
