TX Text Control .NET for Windows Forms

Add Method

Method|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Adds an item of the type RibbonListViewItem to the end of this collection.

Syntax

public int Add(RibbonListView.RibbonListViewItem item);

Parameters

ParameterDescription
item

The item to be added to the end of this collection.

Return Value

The collection's index at which the value has been added.

Examples

The following example adds an item to the ribbon list view item collection.

var result = ribbonListViewItemCollection.Add(new TXTextControl.Windows.Forms.Ribbon.RibbonListView.RibbonListViewItem());
Console.WriteLine($"Add result: {result}");