RibbonItems 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 a collection of all items contained in this group. These controls can be objects of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView or RibbonTextBox. RibbonGroups of type HorizontalRibbonGroup can also add objects of type RibbonSeperator.
Syntax
public RibbonItemCollection RibbonItems { get; }Public ReadOnly Property RibbonItems As RibbonItemCollectionExamples
The following example iterates through the ribbon items collection and processes each control.
foreach (System.Windows.Forms.Control control in ribbonGroup.RibbonItems)
{
control.Text = "Quarterly results";
}For Each control As System.Windows.Forms.Control In ribbonGroup.RibbonItems
control.Text = "Quarterly results"
NextLimitations
Read only.