[]
Represents a control that allows a user to select items from among its child elements.
public interface ISelector<T> : ISelector, ICellLinkControl<int>, ICellLinkControl, IControl where T : SelectorItem
Public Interface ISelector(Of T As SelectorItem)
Inherits ISelector, ICellLinkControl(Of Integer), ICellLinkControl, IControl
| Name | Description |
|---|---|
| T |
ISelector<DropDownItem> selector = worksheet.Controls.AddDropDown(20, 20, 120, 20);
selector.Items.Add(new DropDownItem("Pending"));
selector.Items.Add(new DropDownItem("Approved"));
selector.SelectedItem = selector.Items[1];
DropDownItem selectedItem = selector.SelectedItem;
| Name | Description |
|---|---|
| Items | Gets items of this control. The list is read-only if ItemsSourceRange exists. Not fully supported by the *.ssjson and *.sjs format. Data could lose. |
| SelectedItem | Gets or sets the currently selected item. Not fully supported by the *.ssjson and *.sjs format. ArgumentOutOfRangeException could occur if Items lost data. |