TXTextControl.Windows.Forms.Ribbon.RibbonItemCollection Class

An instance of the RibbonItemCollection class contains controls of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator and can be obtained with the RibbonGroup.RibbonItems, Ribbon.ApplicationMenuHelpPaneItems, Ribbon.ApplicationMenuItems, RibbonMenuButton.DropDownItems or RibbonListView.DropDownItems property. It is inherited from the abstract class System.Collections.CollectionBase and implements the System.Collections.IEnumerable and System.Collections.IEnumerator interfaces. The following describes only the properties, methods and events defined through the RibbonItemCollection class. For a list of properties, methods and events of these classes and interfaces see the .NET Framework reference.

Introduced: 24.0.

Syntax

[C#]
public class RibbonItemCollection: CollectionBase, IEnumerable, IEnumerator
[Visual Basic]
Public Class RibbonItemCollection
  Inherits CollectionBase
  Implements IEnumerable
  Implements IEnumerator

Methods

Method Description
Add Adds a control of the type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator to the end of the collection.
AddRange Adds an array of controls to the end of the collection.
Contains Determines whether a control is in the collection.
Insert Inserts a control of the type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator at the specified index.
InsertRange Inserts an array of controls at the specified index.
Item Gets a control of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator from the collection.
Remove Removes a control of the type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator from this collection.

See Also