Edytuj

Udostępnij za pośrednictwem


_OlkComboBox.AddItem(String, Object) Method

Definition

Adds an item to the list, optionally specifying an index for the new item to appear in the list.

public void AddItem (string ItemText, object Index);
Public Sub AddItem (ItemText As String, Optional Index As Object)

Parameters

ItemText
String

Value to be added to the list in the combo box.

Index
Object

A 0-based value that specifies the order of the new item in the list.

Remarks

If the value of Index is equal to or larger than the number of elements in the list, the new item will be added to the end of the list.

Applies to