# TableCellFormat.RightTextDistance Property

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

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

---

### Description

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

### Syntax

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

```vbnet
Public Property RightTextDistance As Integer
```

### Examples

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

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

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

```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.RightTextDistance = 720
Console.WriteLine($"Right Text Distance used by Table Cell Format: {tableCellFormat.RightTextDistance}")
```

---

## Nearby

- **Previous:** [TableCellFormat.RightBorderWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecellformat/rightborderwidth-property/llms-full.txt)
- **Next:** [TableCellFormat.TextType Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecellformat/texttype-property/llms-full.txt)
