TX Text Control .NET for Windows Forms

DropDownItems 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 the collection of controls in the drop-down menu that is associated with this RibbonMenuButton. These controls can be objects of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator.

Syntax

public RibbonItemCollection DropDownItems { get; }

Examples

The following example iterates through the drop down items collection and processes each control.

foreach (System.Windows.Forms.Control control in ribbonMenuButton.DropDownItems)
{
    control.Text = "Quarterly results";
}

Limitations

Read only.