# ParagraphFormat.TabTypes Property

> Gets or sets an array containing the tab types in a paragraph.

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

---

### Description

Gets or sets an array containing the tab types in a paragraph.

### Syntax

```csharp
public TabType[] TabTypes { get; set; }
```

```vbnet
Public Property TabTypes As TabType()
```

### Members

| Value | Description |
|---|---|
| LeftTab | The tab position is at the left side of the text. |
| RightTab | The tab position is at the right side of the text. |
| CenterTab | The text is centered to the tab position. |
| DecimalTab | The decimal sign is aligned at the tab position. |
| RightBorderTab | The tab is positioned right most and the text is diplayed at the left of this position. The tab position set with the TabPositions property is ignored. Only one tab of this kind is possible in a paragraph. |

### Examples

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

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

paragraphFormat.TabTypes = new TabType[] { TabType.LeftTab };
if (paragraphFormat.TabTypes != null)
{
    Console.WriteLine("Paragraph Format: Tab Types is available.");
}

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.TabTypes = New TabType() { TabType.LeftTab }
If paragraphFormat.TabTypes IsNot Nothing Then
    Console.WriteLine("Paragraph Format: Tab Types is available.")
End If

textControl.Selection.ParagraphFormat = paragraphFormat
```

### Limitations

The maximum number of tabs in a parapgraph is 14.

### Remarks

The default type is TabType.LeftTab.

The property returns an array with common values when the text selection contains multiple paragraphs with mixed types. The remaining not common values are set to zero. If all values are different, the [Selection.IsCommonValueSelected](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selection/iscommonvalueselected-method/llms-full.txt) method returns false.

---

## Nearby

- **Previous:** [ParagraphFormat.TabPositions Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/tabpositions-property/llms-full.txt)
- **Next:** [ParagraphFormat.TopDistance Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/topdistance-property/llms-full.txt)
