# TextControl.CanPaste Property

> Informs whether the clipboard contains a format that can be pasted into a Text Control document. The property's value also depends on the DocumentPermissions.ReadOnly 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.CanPaste Property
- **404 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/canpaste-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/canpaste-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/canpaste-property/llms-full.txt

---

### Description

Informs whether the clipboard contains a format that can be pasted into a Text Control document. The property's value also depends on the [DocumentPermissions.ReadOnly](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentpermissions/readonly-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 CanPaste { get; }
```

```vbnet
Public ReadOnly Property CanPaste As Boolean
```

### Examples

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

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

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

```csharp
if (textControl.CanPaste)
{
    textControl.Paste();
}
```

```vbnet
If textControl.CanPaste Then
    textControl.Paste()
End If
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [TextControl.CanParagraphFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/canparagraphformat-property/llms-full.txt)
- **Next:** [TextControl.CanPrint Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/canprint-property/llms-full.txt)
