# TextControl.CanEdit Property

> Informs whether the document's text and/or formatting attributes can be changed. The property's value depends on the DocumentPermissions.ReadOnly 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.CanEdit Property
- **365 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/canedit-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/canedit-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/canedit-property/llms-full.txt

---

### Description

Informs whether the document's text and/or formatting attributes can be changed. The property's value depends on the [DocumentPermissions.ReadOnly](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentpermissions/readonly-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 CanEdit { get; }
```

```vbnet
Public ReadOnly Property CanEdit As Boolean
```

### Examples

The following example checks the can edit state before recording the object's current status.

```csharp
if (textControl.CanEdit)
{
    Console.WriteLine("Text Control is ready for this operation.");
}
```

```vbnet
If textControl.CanEdit Then
    Console.WriteLine("Text Control is ready for this operation.")
End If
```

### Limitations

Runtime only.

Read only.

---

## Nearby

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