# FormattingStyle.Baseline Property

> Gets or sets a user-defined baseline alignment, in twips, of the style. Positive values moves the baseline to superscript, negative values move the baseline to subscript.

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

---

### Description

Gets or sets a user-defined baseline alignment, in twips, of the style. Positive values moves the baseline to superscript, negative values move the baseline to subscript.

### Syntax

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

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

### Examples

The following example creates a reusable emphasis style and adds it to the document by using `FormattingStyle.Baseline`.

```csharp
FormattingStyle formattingStyle = new InlineStyle("Emphasis");

formattingStyle.Baseline = 10;
Console.WriteLine($"Baseline used by Formatting Style: {formattingStyle.Baseline}");

textControl.InlineStyles.Add((InlineStyle)formattingStyle);
```

```vbnet
Dim formattingStyle As FormattingStyle = New InlineStyle("Emphasis")

formattingStyle.Baseline = 10
Console.WriteLine($"Baseline used by Formatting Style: {formattingStyle.Baseline}")

textControl.InlineStyles.Add(DirectCast(formattingStyle, InlineStyle))
```

### Limitations

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

---

## Nearby

- **Previous:** [FormattingStyle.AutoBaseline Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formattingstyle/autobaseline-property/llms-full.txt)
- **Next:** [FormattingStyle.BaseStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formattingstyle/basestyle-property/llms-full.txt)
