# TextControl.CanCopy Property

> Informs whether a part of a Text Control document has been selected and can be copied to the clipboard. The property's value also depends on the DocumentPermissions.AllowCopy property and the currently set edit mode.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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.CanCopy Property
- **403 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/cancopy-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/cancopy-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/cancopy-property/llms-full.txt

---

### Description

Informs whether a part of a Text Control document has been selected and can be copied to the clipboard. The property's value also depends on the [DocumentPermissions.AllowCopy](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentpermissions/allowcopy-property/llms-full.txt) property and the currently set [edit mode](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/editmode-property/llms-full.txt).

### Syntax

```csharp
public bool CanCopy { get; }
```

```vbnet
Public ReadOnly Property CanCopy As Boolean
```

### Examples

The following XAML example shows how to bind the CanCopy property to the IsEnabled attribute of a menu item.

```plaintext
<MenuItem
   Header="Copy"
   Command="ApplicationCommands.Copy"
   IsEnabled="{Binding ElementName=textControl1, Path=CanCopy}" />
```

The following example checks can copy before performing the related operation.

```csharp
if (textControl.CanCopy)
{
    textControl.Copy();
}
```

```vbnet
If textControl.CanCopy Then
    textControl.Copy()
End If
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [TextControl.CanCharacterFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/cancharacterformat-property/llms-full.txt)
- **Next:** [TextControl.CanDocumentFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/candocumentformat-property/llms-full.txt)
