# TableCellFormat.LeftTextDistance Property

> Gets or sets, in twips, the distance between the table cell's left border and its text.

- **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 > TableCellFormat.LeftTextDistance Property
- **544 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecellformat/lefttextdistance-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecellformat/lefttextdistance-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecellformat/lefttextdistance-property/llms-full.txt

---

### Description

Gets or sets, in twips, the distance between the table cell's left border and its text.

### Syntax

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

```vbnet
Public Property LeftTextDistance As Integer
```

### Examples

The following example creates a small report table and works with its structure by using `TableCellFormat.LeftTextDistance`.

```csharp
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCellFormat tableCellFormat = table.Cells[1, 1].CellFormat;

tableCellFormat.LeftTextDistance = 720;
Console.WriteLine($"Left Text Distance used by Table Cell Format: {tableCellFormat.LeftTextDistance}");
```

```vbnet
textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableCellFormat As TableCellFormat = table.Cells(1, 1).CellFormat

tableCellFormat.LeftTextDistance = 720
Console.WriteLine($"Left Text Distance used by Table Cell Format: {tableCellFormat.LeftTextDistance}")
```

---

## Nearby

- **Previous:** [TableCellFormat.LeftBorderWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecellformat/leftborderwidth-property/llms-full.txt)
- **Next:** [TableCellFormat.NumberFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecellformat/numberformat-property/llms-full.txt)
