MaxVisibleRows Property
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }Public Property MaxVisibleRows As Integer?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();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.