# ParagraphFormat.LineSpacing Property

> Specifies the line spacing of a paragraph as a percentage of the font size.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 for Windows Forms > Reference > TXTextControl > ParagraphFormat.LineSpacing Property
- **677 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/linespacing-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/linespacing-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/linespacing-property/llms-full.txt

---

### Description

Specifies the line spacing of a paragraph as a percentage of the font size.

### Syntax

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

```vbnet
Public Property LineSpacing As Integer
```

### Examples

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

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

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

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.LineSpacing = 720
Console.WriteLine($"Line Spacing used by Paragraph Format: {paragraphFormat.LineSpacing}")

textControl.Selection.ParagraphFormat = paragraphFormat
```

### Limitations

The property's value must be between 1 and 10000 percent (0.01 to 100 lines).

### Remarks

The property's default value is 100 percent.

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-winforms/reference/txtextcontrol/selection/iscommonvalueselected-method/llms-full.txt) method can be used to check for mixed attributes.

### See Also

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

---

## Nearby

- **Previous:** [ParagraphFormat.LeftIndent Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/leftindent-property/llms-full.txt)
- **Next:** [ParagraphFormat.MaxTabs Field](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/maxtabs-field/llms-full.txt)
