[]
Represents an item in an IDropDown control.
Use this class to create items programmatically and add them to a drop-down
item collection. A DropDownItem inherits common selector-item behavior,
such as item value and read-only state, from SelectorItem.
public class DropDownItem : SelectorItem
Public Class DropDownItem
Inherits SelectorItem
IDropDown dropDown = worksheet.Controls.AddDropDown(20, 20, 120, 20);
DropDownItem item = new DropDownItem("Pending");
dropDown.Items.Add(item);
| Name | Description |
|---|---|
| DropDownItem() | 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. |
| DropDownItem(string) | Creates an item with value. This constructor initializes the item by setting its value. |