TX Text Control .NET for Windows Forms

Item 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 a control of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator from the collection. This property is the indexer for the RibbonItemCollection class.

Syntax

public Control this[int number] { get; }

Examples

The following example includes the item value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Item: {ribbonItemCollection[10]}");
Console.WriteLine("Ribbon Item Collection is ready for use.");