# TextControl.CanDocumentFormat Property

> Informs whether the document can be formatted with page and section formatting attributes. The property's value depends on the DocumentPermissions.AllowFormatting 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.CanDocumentFormat Property
- **379 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/candocumentformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/candocumentformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/candocumentformat-property/llms-full.txt

---

### Description

Informs whether the document can be formatted with page and section formatting attributes. The property's value depends on the [DocumentPermissions.AllowFormatting](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentpermissions/allowformatting-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 CanDocumentFormat { get; }
```

```vbnet
Public ReadOnly Property CanDocumentFormat As Boolean
```

### Examples

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

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

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

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [TextControl.CanCopy Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/cancopy-property/llms-full.txt)
- **Next:** [TextControl.CanEdit Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/canedit-property/llms-full.txt)
