# 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 WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.DocumentPermissions Property
- **451 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documentpermissions-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documentpermissions-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documentpermissions-property/llms-full.txt

---

### Description

Gets a [DocumentPermissions](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/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-wpf/reference/txtextcontrol-wpf/textcontrol/editmode-property/llms-full.txt) property is set to `EditMode.ReadAndSelect`.

### Syntax

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

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

### Examples

The following example uses `TextControl.DocumentPermissions` to configure document permissions as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.DocumentPermissions = new DocumentPermissions();
if (textControl.DocumentPermissions != null)
{
    Console.WriteLine("Text Control: Document Permissions is available.");
}
```

```vbnet
textControl.DocumentPermissions = New DocumentPermissions()
If textControl.DocumentPermissions IsNot Nothing Then
    Console.WriteLine("Text Control: Document Permissions is available.")
End If
```

---

## Nearby

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