# Line.Baseline Property

> 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.

- **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.Baseline Property
- **493 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/line/baseline-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/line/baseline-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/line/baseline-property/llms-full.txt

---

### Description

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](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/scrolllocation-property/llms-full.txt) property.

### Syntax

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

```vbnet
Public ReadOnly Property Baseline As Integer
```

### Examples

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

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

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

### Limitations

Read only.

---

## Nearby

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