# Line.Text Property

> Gets the line's text.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 10.1
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > Line.Text Property
- **406 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/text-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/text-property/llms-full.txt

---

### Description

Gets the line's text.

### Syntax

```csharp
public string Text { get; }
```

```vbnet
Public ReadOnly Property Text As String
```

### Examples

The following example examines the first line in a short document by using `Line.Text`.

```csharp
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Line line = textControl.Lines[1];

Console.WriteLine($"Text: {line.Text}");
Console.WriteLine("Line is ready for use.");
```

```vbnet
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim line As Line = textControl.Lines(1)

Console.WriteLine($"Text: {line.Text}")
Console.WriteLine("Line is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Line.Start Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/start-property/llms-full.txt)
- **Next:** [Line.TextBounds Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/textbounds-property/llms-full.txt)
