# 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 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.CanPrint Property
- **363 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/canprint-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/canprint-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/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-wpf/reference/txtextcontrol/documentpermissions/allowprinting-property/llms-full.txt) property and the currently set [edit mode](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/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", true);
}
```

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

### Limitations

Runtime only.

Read only.

---

## Nearby

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