[]
Creates an empty item.
Use this constructor to create a ListBoxItem without an initial value,
and then assign its content through Value before adding it
to Items.
public ListBoxItem()
Public Sub New()
IListBox listBox = worksheet.Controls.AddListBox(20, 20, 120, 80);
ListBoxItem item = new ListBoxItem();
item.Value = "North";
listBox.Items.Add(item);
Creates a list box item with the specified value.
This constructor initializes the item by assigning value to Value.
public ListBoxItem(string value)
Public Sub New(value As String)
| Type | Name | Description |
|---|---|---|
| string | value | The item value. Can be |
IListBox listBox = worksheet.Controls.AddListBox(20, 20, 120, 80);
listBox.Items.Add(new ListBoxItem("North"));