# TextFrame Class

> An instance of the Web.TextFrame class represents a text frame in a Text Control document. A text frame is a rectangle that can be filled with text by an end-user and can be edited like the main text. The Web.TextFrame class inherits from the Web.TextPart class.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 22.0
- **Namespace:** `TXTextControl.Web`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Inherits:** `TXTextControl.Web.TextPart`
- **Implements:** `TXTextControl.Web.IFormattedText`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > TextFrame Class
- **428 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textframe/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textframe/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textframe/llms-full.txt

---

### Description

An instance of the Web.TextFrame class represents a text frame in a Text Control document. A text frame is a rectangle that can be filled with text by an end-user and can be edited like the main text. The Web.TextFrame class inherits from the [Web.TextPart](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textpart/llms-full.txt) class.

### Syntax

```csharp
public class TextFrame : TextPart
```

```vbnet
Public Class TextFrame
    Inherits TextPart
```

### Examples

The following example inspects a Text Frame object supplied by the document workflow.

```csharp
var currentValue = textFrame.Selection;
Console.WriteLine($"Selection: {currentValue}");
```

```vbnet
Dim currentValue = textFrame.Selection
Console.WriteLine($"Selection: {currentValue}")
```

---

## Nearby

- **Previous:** [TextControl.WebSocketHandlerPath Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/websockethandlerpath-property/llms-full.txt)
- **Next:** [TextPart Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textpart/llms-full.txt)
