TX Text Control .NET for Windows Forms

MaxVisibleRows Property

Property|Introduced in 24.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 rows that are displayed by the RibbonListView. If the value is set to null, the number of rows is not limited and the RibbonListView's height bounds to the actual number of rows. The default value is null.

Syntax

public int? MaxVisibleRows { get; set; }

Examples

The following example uses RibbonListView.MaxVisibleRows to configure max visible rows as part of the ribbon list view workflow. The change is then applied to the active document or user interface.

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

Remarks

If the actual number of rows is greater than the specified maximum number of rows, the RibbonListView is extended by a scroll bar to the right. Otherwise no scroll bar is displayed.