# TextControl.TextParts Property

> Gets a collection of all text parts the current document contains. The property's value is an object of the type Web.TextPartCollection. A text part can be the main text, a text frame or a header or footer.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 22.0
- **Namespace:** `TXTextControl.Web`
- **Assembly:** `TXTextControl.Web.dll`, which the TX Text Control .NET Server setup installs, for .NET Framework; in no NuGet package
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > TextControl.TextParts Property
- **433 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/textparts-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/textparts-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/textparts-property/llms-full.txt

---

### Description

Gets a collection of all text parts the current document contains. The property's value is an object of the type [Web.TextPartCollection](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textpartcollection/llms-full.txt). A text part can be the main text, a text frame or a header or footer.

### Syntax

```csharp
public Web.TextPartCollection TextParts { get; }
```

```vbnet
Public ReadOnly Property TextParts() As Web.TextPartCollection
```

### Examples

`TextParts` belonged to the older server-control surface. In the current ASP.NET Core integration, use `TextControlSettings.TextFieldsEditable` for the corresponding editor configuration.

```csharp
textControlSettings.TextFieldsEditable = true;
if (textControlSettings.TextFieldsEditable)
{
    Console.WriteLine("Text Fields Editable is enabled for Text Control Settings.");
}
```

```vbnet
textControlSettings.TextFieldsEditable = True
If textControlSettings.TextFieldsEditable Then
    Console.WriteLine("Text Fields Editable is enabled for Text Control Settings.")
End If
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [TextControl.TextFrameMarkerLines Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/textframemarkerlines-property/llms-full.txt)
- **Next:** [TextControl.UICulture Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/uiculture-property/llms-full.txt)
