Share via


FormComboBoxControl.insert(String, Int32) Method

Definition

Inserts a string value into the combo box list at the specified position.

public:
 virtual void insert(System::String ^ _string, int _index);
public virtual void insert (string _string, int _index);
abstract member insert : string * int -> unit
override this.insert : string * int -> unit
Public Overridable Sub insert (_string As String, _index As Integer)

Parameters

_string
String

The position to insert the string after. If you want the string to be the first item in the list, set the value to 0 (zero).

_index
Int32

The position to insert the string after. If you want the string to be the first item in the list, set the value to 0 (zero).

Remarks

The following example shows how to insert a string into the combo box list.

this.insert("willow", 3);

Applies to