TX Text Control .NET for Windows Forms

MaxColumnCount Property

Property|Introduced in 25.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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

public int? MaxColumnCount { get; set; }

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.

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