RibbonGroupCollection Class
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.Windows. Forms. dll
- Inherits
- Collection
Base - Ribbon
Group Collection
- Collection
- Implements
- IEnumerator
Description
An instance of the RibbonGroupCollection class contains objects of type RibbonGroup and can be obtained with the RibbonTab.RibbonGroups 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 RibbonGroupCollection class. For a list of properties, methods and events of these classes and interfaces see the .NET Framework reference.
Syntax
public class RibbonGroupCollection : CollectionBase, IEnumeratorPublic Class RibbonGroupCollection
Inherits CollectionBase
Implements IEnumeratorExamples
The following example includes the item value from a Ribbon Group Collection object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Item: {ribbonGroupCollection[10]}");
Console.WriteLine("Ribbon Group Collection is ready for use.");Console.WriteLine($"Item: {ribbonGroupCollection.Item(10)}")
Console.WriteLine("Ribbon Group Collection is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Current | Not described in the reference. public object Current { get; } |
| Item | Gets an object of type RibbonGroup from the collection. This property is the indexer for the RibbonItemCollection class. |
Methods
| Method | Description |
|---|---|
| Add | Adds an object of the type RibbonGroup to the end of the collection. |
| Insert | Inserts an object of the type RibbonGroup at the specified index of the collection. |
| MoveNext | Not described in the reference. public bool MoveNext(); |
| Remove | Removes an object of the type RibbonGroup from the collection. |
| RemoveAt | Not described in the reference. public void RemoveAt(int index); |
| Reset | Not described in the reference. public void Reset(); |