# InputFormat.HangingIndent Property

> Gets or sets the hanging indent, in twips, at the current input position. If text is selected, the property specifies the hanging indent of the whole selected text. A negative value indicates an additional indent of the paragraph's first line.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **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 > InputFormat.HangingIndent Property
- **816 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/hangingindent-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/hangingindent-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/hangingindent-property/llms-full.txt

---

### Description

Gets or sets the hanging indent, in twips, at the current input position. If text is selected, the property specifies the hanging indent of the whole selected text. A negative value indicates an additional indent of the paragraph's first line.

### Syntax

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

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

### Examples

The following XAML example binds the HangingIndent property to a text box using the [WPF.MeasureConverter](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/llms-full.txt) class. The value of the hanging indent is converted to centimeter.

```plaintext
…
xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
…
<Window.Resources>
    <tx:MeasureConverter Unit="Centimeter" x:Key="twipsConv" />
</Window.Resources>
…
<TextBox 
    Text="{Binding
        ElementName=textControl1,
        Path=InputFormat.HangingIndent,
        Converter={StaticResource twipsConv},
        Mode=TwoWay}" />
```

The following example changes the formatting applied to text entered at the end of a document by using `InputFormat.HangingIndent`.

```csharp
textControl.Text = "Project summary";
textControl.InputPosition = new InputPosition(textControl.Text.Length);
InputFormat inputFormat = textControl.InputFormat;

inputFormat.HangingIndent = 720;
if (inputFormat.HangingIndent != null)
{
    Console.WriteLine("Input Format: Hanging Indent is available.");
}
```

```vbnet
textControl.Text = "Project summary"
textControl.InputPosition = New InputPosition(textControl.Text.Length)
Dim inputFormat As InputFormat = textControl.InputFormat

inputFormat.HangingIndent = 720
If inputFormat.HangingIndent IsNot Nothing Then
    Console.WriteLine("Input Format: Hanging Indent is available.")
End If
```

### Remarks

The property returns null when the text selection contains multiple paragraphs with different hanging indents.

The [WPF.MeasureConverter](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/llms-full.txt) can be used to convert the property value to another measuring unit.

---

## Nearby

- **Previous:** [InputFormat.GetFontSizes Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/getfontsizes-method/llms-full.txt)
- **Next:** [InputFormat.InnerHorizontalFrameLines Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/innerhorizontalframelines-property/llms-full.txt)
