_OlkComboBox.AddItem(String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.