# Line Class

> An instance of the Line class represents a single line in a Text Control document.

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

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/#members)

---

## In This Section

- [Line.Baseline Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/baseline-property/llms.txt): Gets the line's baseline position. The value is given in twips with an origin at the upper left corner of the document. The relationship between the upper left corner of the document and the upper left corner of the visible portion of the document can be obtained with the TextControl.ScrollLocation property.
- [Line.Length Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/length-property/llms.txt): Gets the number of characters in the line including the break character.
- [Line.Number Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/number-property/llms.txt): Gets the line's number. The first line has the number 1.
- [Line.Page Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/page-property/llms.txt): Gets the number of the page to which the line belongs. The first page has the number 1.
- [Line.Save Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/save-method/llms.txt): Saves the line's text with the specified format.
- [Line.Start Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/start-property/llms.txt): Gets the number (one-based) of the first character in the line.
- [Line.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/text-property/llms.txt): Gets the line's text.
- [Line.TextBounds Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/textbounds-property/llms.txt): Gets the bounding rectangle of the text belonging to the line. The values are given in twips with an origin at the upper left corner of the document. The relationship between the upper left corner of the document and the upper left corner of the visible portion of the document can be obtained with the TextControl.ScrollLocation property.

---

## Nearby

- **Previous:** [LicenseLevelException Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/licenselevelexception/constructor/llms.txt)
- **Next:** [Line.Baseline Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/line/baseline-property/llms.txt)
