# DocumentPermissions.AllowCopy Property

> Specifies whether document content can be copied to the clipboard. The default setting of this property is true.

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

---

### Description

Specifies whether document content can be copied to the clipboard. The default setting of this property is true.

### Syntax

```csharp
public bool AllowCopy { get; set; }
```

```vbnet
Public Property AllowCopy As Boolean
```

### Examples

The following example configures document permissions for the current document by using `DocumentPermissions.AllowCopy`.

```csharp
DocumentPermissions documentPermissions = textControl.DocumentPermissions;

documentPermissions.AllowCopy = true;
if (documentPermissions.AllowCopy)
{
    Console.WriteLine("Document Permissions: Allow Copy is enabled.");
}

documentPermissions.ReadOnly = true;
documentPermissions.AllowPrinting = true;
```

```vbnet
Dim documentPermissions As DocumentPermissions = textControl.DocumentPermissions

documentPermissions.AllowCopy = True
If documentPermissions.AllowCopy Then
    Console.WriteLine("Document Permissions: Allow Copy is enabled.")
End If

documentPermissions.ReadOnly = True
documentPermissions.AllowPrinting = True
```

---

## Nearby

- **Previous:** [DocumentPermissions Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentpermissions/llms-full.txt)
- **Next:** [DocumentPermissions.AllowEditingFormFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentpermissions/alloweditingformfields-property/llms-full.txt)
