# RibbonListView.CellPadding Property

> Gets or sets the amount of space between the cell's item and the cell's border.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.Windows.Forms.Ribbon`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms.Ribbon > RibbonListView.CellPadding Property
- **315 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/cellpadding-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/cellpadding-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/cellpadding-property/llms-full.txt

---

### Description

Gets or sets the amount of space between the cell's [item](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview-ribbonlistviewitem/llms-full.txt) and the cell's border.

### Syntax

```csharp
public Padding CellPadding { get; set; }
```

```vbnet
Public Property CellPadding As Padding
```

### Examples

The following example uses `RibbonListView.CellPadding` to configure cell padding as part of the ribbon list view workflow. The change is then applied to the active document or user interface.

```csharp
ribbonListView.CellPadding = default(System.Windows.Forms.Padding);
ribbonListView.Update();
```

```vbnet
ribbonListView.CellPadding = Nothing
ribbonListView.Update()
```

---

## Nearby

- **Previous:** [RibbonListView.ActivateEditItemTextBox Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/activateedititemtextbox-method/llms-full.txt)
- **Next:** [RibbonListView.ColumnCount Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/columncount-property/llms-full.txt)
