편집

다음을 통해 공유


ControlFormat.AddItem(String, Object) Method

Definition

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

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

Parameters

Text
String

Required String. The text to be added

Index
Object

Optional Object. 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.

Remarks

Using this method clears any range specified by the ListFillRange property.

Applies to