# TextControl.Baseline Property

> Gets or sets the baseline alignment, in twips, of the Text Control. Positive values moves the baseline to superscript, negative values moves the baseline to subscript.

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

---

### Description

Gets or sets the baseline alignment, in twips, of the Text Control. Positive values moves the baseline to superscript, negative values moves the baseline to subscript.

### Syntax

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

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

### Examples

The following example uses `TextControl.Baseline` to configure baseline as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.Baseline = 10;
Console.WriteLine($"Baseline used by Text Control: {textControl.Baseline}");
```

```vbnet
textControl.Baseline = 10
Console.WriteLine($"Baseline used by Text Control: {textControl.Baseline}")
```

### Limitations

The property's value must be between -960 twips and 960 twips (48 pt).

---

## Nearby

- **Previous:** [TextControl.BarcodeSized Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/barcodesized-event/llms-full.txt)
- **Next:** [TextControl.BeginUndoAction Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/beginundoaction-method/llms-full.txt)
