# TextControl.CanPrint Property

> Informs whether the document can be printed. The property's value depends on the DocumentPermissions.AllowPrinting property and the currently set edit mode.

- **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.CanPrint Property
- **347 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/canprint-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/canprint-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/canprint-property/llms-full.txt

---

### Description

Informs whether the document can be printed. The property's value depends on the [DocumentPermissions.AllowPrinting](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentpermissions/allowprinting-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 CanPrint { get; }
```

```vbnet
Public ReadOnly Property CanPrint As Boolean
```

### Examples

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

```csharp
if (textControl.CanPrint)
{
    textControl.Print("CustomerName");
}
```

```vbnet
If textControl.CanPrint Then
    textControl.Print("CustomerName")
End If
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [TextControl.CanPaste Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/canpaste-property/llms-full.txt)
- **Next:** [TextControl.CanRedo Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/canredo-property/llms-full.txt)
