# Selection.DecreaseIndent Method

> Decreases the left indent of all paragraphs contained in the current text selection. If no text is selected, this method decreases the left indent at the text input position. Left indent positions are defined through the paragraphs' tab positions and the indents of the paragraphs in front and behind the paragraph with the text input position.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 16.0
- **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 > Selection.DecreaseIndent Method
- **549 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/decreaseindent-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/decreaseindent-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/decreaseindent-method/llms-full.txt

---

### Description

Decreases the left indent of all paragraphs contained in the current text selection. If no text is selected, this method decreases the left indent at the text input position. Left indent positions are defined through the paragraphs' tab positions and the indents of the paragraphs in front and behind the paragraph with the text input position.

### Syntax

```csharp
public bool DecreaseIndent();
```

```vbnet
Public Function DecreaseIndent() As Boolean
```

### Return Value

The return value is true, if at least one indent could be changed. It is false, if the minimum value has been reached.

### Examples

The following example formats the heading of a short document by using `Selection.DecreaseIndent`.

```csharp
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
textControl.Select(0, 17);
Selection selection = textControl.Selection;

if (selection.DecreaseIndent())
{
    Console.WriteLine("Decrease Indent completed successfully.");
}
```

```vbnet
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
textControl.Select(0, 17)
Dim selection As Selection = textControl.Selection

If selection.DecreaseIndent() Then
    Console.WriteLine("Decrease Indent completed successfully.")
End If
```

---

## Nearby

- **Previous:** [Selection.Culture Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/culture-property/llms-full.txt)
- **Next:** [Selection.DialogResult Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/dialogresult-enumeration/llms-full.txt)
