# ParagraphFormat.AbsoluteLineSpacing Property

> Gets or sets the line spacing of a paragraph in twips.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **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 > ParagraphFormat.AbsoluteLineSpacing Property
- **696 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/paragraphformat/absolutelinespacing-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/paragraphformat/absolutelinespacing-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/paragraphformat/absolutelinespacing-property/llms-full.txt

---

### Description

Gets or sets the line spacing of a paragraph in twips.

### Syntax

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

```vbnet
Public Property AbsoluteLineSpacing As Integer
```

### Examples

The following example applies paragraph layout to selected report text by using `ParagraphFormat.AbsoluteLineSpacing`.

```csharp
textControl.Text = "First item\nSecond item\nThird item";
textControl.Select(0, textControl.Text.Length);
ParagraphFormat paragraphFormat = textControl.Selection.ParagraphFormat;

paragraphFormat.AbsoluteLineSpacing = 720;
Console.WriteLine($"Absolute Line Spacing used by Paragraph Format: {paragraphFormat.AbsoluteLineSpacing}");

textControl.Selection.ParagraphFormat = paragraphFormat;
```

```vbnet
textControl.Text = "First item" & vbCrLf & "Second item" & vbCrLf & "Third item"
textControl.Select(0, textControl.Text.Length)
Dim paragraphFormat As ParagraphFormat = textControl.Selection.ParagraphFormat

paragraphFormat.AbsoluteLineSpacing = 720
Console.WriteLine($"Absolute Line Spacing used by Paragraph Format: {paragraphFormat.AbsoluteLineSpacing}")

textControl.Selection.ParagraphFormat = paragraphFormat
```

### Limitations

Runtime only.

The property's value must be between 20 twips (1 pt) and 32000 twips (1600 pt).

### Remarks

The property's default value is 0, indicating that the line spacing depends on the font height.

The property returns its default value when the text selection contains multiple paragraphs with mixed line spacing. The [Selection.IsCommonValueSelected](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/iscommonvalueselected-method/llms-full.txt) method can be used to check for mixed attributes.

### See Also

[ParagraphFormat.LineSpacing](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/paragraphformat/linespacing-property/llms-full.txt).

---

## Nearby

- **Previous:** [ParagraphFormat Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/paragraphformat/llms-full.txt)
- **Next:** [ParagraphFormat.Alignment Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/paragraphformat/alignment-property/llms-full.txt)
