ApplicationMenuItems 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 which are displayed on the Application Menu. Every ribbon includes an Application Menu as the first tab in the ribbon. Other ribbon tabs contain controls for working with the document content. In contrast, the Application Menu presents a menu of commands for working with the file. The collection can be used to add or remove items and to set item properties. The property value is an object of the type Windows.Forms.Ribbon.RibbonItemCollection.
Syntax
public RibbonItemCollection ApplicationMenuItems { get; }Public ReadOnly Property ApplicationMenuItems As RibbonItemCollectionExamples
The following example iterates through the application menu items collection and processes each control.
foreach (System.Windows.Forms.Control control in ribbon.ApplicationMenuItems)
{
control.Text = "Quarterly results";
}For Each control As System.Windows.Forms.Control In ribbon.ApplicationMenuItems
control.Text = "Quarterly results"
NextLimitations
Read only.