# ListFormat.HangingIndent Property

> Gets or sets the hanging indent of a numbered list.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > ListFormat.HangingIndent Property
- **557 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/listformat/hangingindent-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/listformat/hangingindent-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/listformat/hangingindent-property/llms-full.txt

---

### Description

Gets or sets the hanging indent of a numbered list.

### Syntax

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

```vbnet
Public Property HangingIndent As Integer
```

### Examples

The following example applies `HangingIndent` while converting three selected paragraphs into a usable numbered list.

```csharp
textControl.Text = "Research\nDraft\nReview";
textControl.Select(0, textControl.Text.Length);

ListFormat listFormat = new()
{
    Type = ListType.Numbered,
    HangingIndent = 360
};
textControl.Selection.ListFormat = listFormat;
```

```vbnet
textControl.Text = "Research" & vbCrLf & "Draft" & vbCrLf & "Review"
textControl.Select(0, textControl.Text.Length)

Dim listFormat As New ListFormat() With {
    .Type = ListType.Numbered,
    .HangingIndent = 360
}
textControl.Selection.ListFormat = listFormat
```

### Remarks

The property's default value is 360 twips.

The property returns 0 when the text selection contains multiple paragraphs with mixed hanging indents or when the text selection does not contain a bulleted or a numbered list. The [Selection.IsCommonValueSelected](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/iscommonvalueselected-method/llms-full.txt) method can be used to check for mixed attributes.

---

## Nearby

- **Previous:** [ListFormat.FormatCharacter Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/listformat/formatcharacter-property/llms-full.txt)
- **Next:** [ListFormat.LeftIndent Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/listformat/leftindent-property/llms-full.txt)
