TX Text Control .NET for Windows Forms

Items Property

Property|Introduced in 29.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 all items that are displayed when the drop-down menu is opened. The default value is an empty string array.

Syntax

public string[] Items { get; set; }

Examples

The following example uses RibbonListViewItemDropDown.Items to configure items as part of the ribbon list view item drop down workflow. The configured value is checked before the workflow continues.

ribbonListViewItemDropDown.Items = new string[] { "Quarterly report" };
if (ribbonListViewItemDropDown.Items != null)
{
    Console.WriteLine("Ribbon List View Item Drop Down: Items is available.");
}