[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.FormControls.IListControl.AddItem

AddItem Method

AddItem(string, int)

Adds an item to a list box or a combo box.

Declaration
void AddItem(string text, int index = -1)
Sub AddItem(text As String, Optional index As Integer = -1)
Parameters
Type Name Description
string text

The text to be added.

int index

The position of the new entry. If the list has fewer entries than the specified index, blank items from the end of the list are added to the specified position. If this argument is omitted, the item is appended to the existing list.