TX Text Control .NET for Windows Forms

RibbonGroupCollection Class

Class|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.
Inherits
  1. CollectionBase
  2. RibbonGroupCollection
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, IEnumerator

Examples

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.");

Members

Properties

PropertyDescription
CurrentNot described in the reference. public object Current { get; }
ItemGets an object of type RibbonGroup from the collection. This property is the indexer for the RibbonItemCollection class.

Methods

MethodDescription
AddAdds an object of the type RibbonGroup to the end of the collection.
InsertInserts an object of the type RibbonGroup at the specified index of the collection.
MoveNextNot described in the reference. public bool MoveNext();
RemoveRemoves an object of the type RibbonGroup from the collection.
RemoveAtNot described in the reference. public void RemoveAt(int index);
ResetNot described in the reference. public void Reset();