DropDownItems 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 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; }Public ReadOnly Property DropDownItems As RibbonItemCollectionExamples
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";
}For Each control As System.Windows.Forms.Control In ribbonMenuButton.DropDownItems
control.Text = "Quarterly results"
NextLimitations
Read only.