TX Text Control .NET for Windows Forms

RibbonListViewItemCollection 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. RibbonListView.RibbonListViewItemCollection
Implements
IEnumerator

Description

An instance of the RibbonListViewItemCollection class contains controls of type RibbonListViewItem and can be obtained with the RibbonListView.RibbonListViewItems 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 RibbonListViewItemCollection class. For a list of properties, methods and events of these classes and interfaces see the .NET Framework reference.

Syntax

public class RibbonListView.RibbonListViewItemCollection : CollectionBase, IEnumerator

Examples

The following example includes the item value from a Ribbon List View Item Collection object in application diagnostics. The created object is then available to the surrounding document workflow.

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

Members

Properties

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

Methods

MethodDescription
AddAdds an item of the type RibbonListViewItem to the end of this collection.
ClearNot described in the reference. public void Clear();
MoveNextNot described in the reference. public bool MoveNext();
RemoveAtNot described in the reference. public void RemoveAt(int index);
ResetNot described in the reference. public void Reset();