# Line.Number Property

> Gets the line's number. The first line has the number 1.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 10.1
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > Line.Number Property
- **407 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/line/number-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/line/number-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/line/number-property/llms-full.txt

---

### Description

Gets the line's number. The first line has the number 1.

### Syntax

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

```vbnet
Public ReadOnly Property Number As Integer
```

### Examples

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

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

Console.WriteLine($"Number: {line.Number}");
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($"Number: {line.Number}")
Console.WriteLine("Line is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Line.Length Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/line/length-property/llms-full.txt)
- **Next:** [Line.Page Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/line/page-property/llms-full.txt)
