[]
Creates an empty item.
Use this constructor to create a DropDownItem without an initial value, and then set the item value later before adding it to an IDropDown.
public DropDownItem()
Public Sub New()
DropDownItem item = new DropDownItem();
item.Value = "Pending";
Creates an item with value.
This constructor initializes the item by setting its value.
public DropDownItem(string value)
Public Sub New(value As String)
| Type | Name | Description |
|---|---|---|
| string | value | The value of item. |
IDropDown dropDown = worksheet.Controls.AddDropDown(20, 20, 120, 20);
DropDownItem item = new DropDownItem("Pending");
dropDown.Items.Add(item);