# RibbonListView.ColumnCount Property

> Gets the number of columns in this RibbonListView. This value is the larger of the RibbonListView.MinColumnCount property value and the maximum number of columns which can be displayed inside the control.

- **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.ColumnCount Property
- **354 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/columncount-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/columncount-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/columncount-property/llms-full.txt

---

### Description

Gets the number of columns in this RibbonListView. This value is the larger of the [RibbonListView.MinColumnCount](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/mincolumncount-property/llms-full.txt) property value and the maximum number of columns which can be displayed inside the control.

### Syntax

```csharp
public int ColumnCount { get; }
```

```vbnet
Public ReadOnly Property ColumnCount As Integer
```

### Examples

The following example includes the column count value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Column Count: {ribbonListView.ColumnCount}");
Console.WriteLine("Ribbon List View is ready for use.");
```

```vbnet
Console.WriteLine($"Column Count: {ribbonListView.ColumnCount}")
Console.WriteLine("Ribbon List View is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [RibbonListView.CellPadding Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/cellpadding-property/llms-full.txt)
- **Next:** [RibbonListView.ColumnWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/columnwidth-property/llms-full.txt)
