# RibbonListView.MaxColumnCount Property

> Gets or sets a value specifying the maximum number of columns in this RibbonListView. If the value is set to null, the number of columns is the maximum number of columns which can be displayed inside the control. The default value is null.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.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.MaxColumnCount Property
- **300 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/maxcolumncount-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/maxcolumncount-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/maxcolumncount-property/llms-full.txt

---

### Description

Gets or sets a value specifying the maximum number of columns in this RibbonListView. If the value is set to null, the number of columns is the maximum number of columns which can be displayed inside the control. The default value is null.

### Syntax

```csharp
public int? MaxColumnCount { get; set; }
```

```vbnet
Public Property MaxColumnCount As Integer?
```

### Examples

The following example uses `RibbonListView.MaxColumnCount` to configure max column count as part of the ribbon list view workflow. The change is then applied to the active document or user interface.

```csharp
ribbonListView.MaxColumnCount = 1;
ribbonListView.Update();
```

```vbnet
ribbonListView.MaxColumnCount = 1
ribbonListView.Update()
```

---

## Nearby

- **Previous:** [RibbonListView.ListViewMode Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview-listviewmode/enumeration/llms-full.txt)
- **Next:** [RibbonListView.MaxColumnWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview/maxcolumnwidth-property/llms-full.txt)
