Add Method
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Adds an item of the type RibbonListViewItem to the end of this collection.
Syntax
public int Add(RibbonListView.RibbonListViewItem item);Public Function Add(item As RibbonListView.RibbonListViewItem) As IntegerParameters
| Parameter | Description |
|---|---|
| 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}");Dim result = ribbonListViewItemCollection.Add(New TXTextControl.Windows.Forms.Ribbon.RibbonListView.RibbonListViewItem())
Console.WriteLine($"Add result: {result}")