RibbonListViewItemCollection 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
List View. Ribbon List View Item Collection
- Collection
- 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, IEnumeratorPublic Class RibbonListView.RibbonListViewItemCollection
Inherits CollectionBase
Implements IEnumeratorExamples
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.");Console.WriteLine($"Item: {ribbonListViewItemCollection.Item(10)}")
Console.WriteLine("Ribbon List View Item Collection is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Current | Not described in the reference. public object Current { get; } |
| Item | Gets an item of type RibbonListViewItem from this collection. This property is the indexer for the RibbonListViewItemCollection class. |
Methods
| Method | Description |
|---|---|
| Add | Adds an item of the type RibbonListViewItem to the end of this collection. |
| Clear | Not described in the reference. public void Clear(); |
| MoveNext | Not described in the reference. public bool MoveNext(); |
| RemoveAt | Not described in the reference. public void RemoveAt(int index); |
| Reset | Not described in the reference. public void Reset(); |