# ParagraphFormat.MaxTabs Field

> Represents the maximum number of tabs in a line. The value of this constant is 14.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Field
- **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.MaxTabs Field
- **565 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/maxtabs-field/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/maxtabs-field/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/maxtabs-field/llms-full.txt

---

### Description

Represents the maximum number of tabs in a line. The value of this constant is 14.

### Syntax

```csharp
public const int MaxTabs = 14;
```

```vbnet
Public Const MaxTabs As Integer = 14
```

### Examples

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

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

Console.WriteLine($"Max Tabs: {ParagraphFormat.MaxTabs}");
Console.WriteLine("Paragraph Format is ready for use.");

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

Console.WriteLine($"Max Tabs: {ParagraphFormat.MaxTabs}")
Console.WriteLine("Paragraph Format is ready for use.")

textControl.Selection.ParagraphFormat = paragraphFormat
```

---

## Nearby

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