# TextControl.TextFrames Property

> Gets a collection of all text frames contained in the text part with the input focus. This can be the main text, a text frame or a header or footer.. The property's value is an object of the type TextFrameCollection. If a text frame contains further text frames, the inner frames are not contained in this collection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 12.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.TextFrames Property
- **378 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textframes-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textframes-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textframes-property/llms-full.txt

---

### Description

Gets a collection of all text frames contained in the text part with the input focus. This can be the main text, a text frame or a header or footer.. The property's value is an object of the type [TextFrameCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframecollection/llms-full.txt). If a text frame contains further text frames, the inner frames are not contained in this collection.

### Syntax

```csharp
public TextFrameCollection TextFrames { get; }
```

```vbnet
Public ReadOnly Property TextFrames As TextFrameCollection
```

### Examples

The following example iterates through the text frames collection and processes each text frame.

```csharp
foreach (TextFrame textFrame in textControl.TextFrames)
{
    textFrame.DescriptiveText = "Quarterly results";
}
```

```vbnet
For Each textFrame As TextFrame In textControl.TextFrames
    textFrame.DescriptiveText = "Quarterly results"
Next
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [TextControl.TextFrameRightClicked Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textframerightclicked-event/llms-full.txt)
- **Next:** [TextControl.TextFrameSelected Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textframeselected-event/llms-full.txt)
