# Paragraph.Lines Property

> Gets the number of lines the paragraph consists of.

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

---

### Description

Gets the number of lines the paragraph consists of.

### Syntax

```csharp
public int Lines { get; }
```

```vbnet
Public ReadOnly Property Lines As Integer
```

### Examples

The following example examines the first paragraph in a short document by using `Paragraph.Lines`.

```csharp
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Paragraph paragraph = textControl.Paragraphs[1];

Console.WriteLine($"Lines: {paragraph.Lines}");
Console.WriteLine("Paragraph is ready for use.");
```

```vbnet
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim paragraph As Paragraph = textControl.Paragraphs(1)

Console.WriteLine($"Lines: {paragraph.Lines}")
Console.WriteLine("Paragraph is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Paragraph.Length Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraph/length-property/llms-full.txt)
- **Next:** [Paragraph.ListFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraph/listformat-property/llms-full.txt)
