[]
Represents a drop-down form control.
A drop-down control displays a list of DropDownItem objects and lets users choose a single item from the list. Use AddDropDown(double, double, double, double) to add a drop-down control to a worksheet, then populate it through Items or bind it to a worksheet range through the inherited selector APIs.
public interface IDropDown : IControl<IDropDown>, ISelector<DropDownItem>, ISelector, ICellLinkControl<int>, ICellLinkControl, IControl
Public Interface IDropDown
Inherits IControl(Of IDropDown), ISelector(Of DropDownItem), ISelector, ICellLinkControl(Of Integer), ICellLinkControl, IControl
IDropDown dropDown = worksheet.Controls.AddDropDown(20, 20, 120, 20);
dropDown.Items.Add(new DropDownItem("Pending"));
dropDown.Items.Add(new DropDownItem("Approved"));
dropDown.DropDownLines = 4;
dropDown.SelectedIndex = 0;
| Name | Description |
|---|---|
| DropDownLines | Gets or sets the number of items displayed when the drop-down list is expanded. |