# ParagraphFormat.LeftIndent Property

> Gets or sets the distance, in twips, between the left edge of the Text Control and the left edge of the text.

- **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.LeftIndent Property
- **635 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/leftindent-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/leftindent-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/leftindent-property/llms-full.txt

---

### Description

Gets or sets the distance, in twips, between the left edge of the Text Control and the left edge of the text.

### Syntax

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

```vbnet
Public Property LeftIndent As Integer
```

### Examples

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

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

paragraphFormat.LeftIndent = 720;
Console.WriteLine($"Left Indent used by Paragraph Format: {paragraphFormat.LeftIndent}");

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

textControl.Selection.ParagraphFormat = paragraphFormat
```

### Remarks

The property's default value is zero.

The property returns its default value when the text selection contains multiple paragraphs with mixed left indents. 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.

---

## Nearby

- **Previous:** [ParagraphFormat.KeepWithNext Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/keepwithnext-property/llms-full.txt)
- **Next:** [ParagraphFormat.LineSpacing Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/linespacing-property/llms-full.txt)
