[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.ISelector-1

ISelector<T> Interface

Represents a control that allows a user to select items from among its child elements.

Namespace: GrapeCity.Documents.Excel.Forms
Assembly: DS.Documents.Excel.dll
Syntax
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
Type Parameters
Name Description
T
Examples
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;

Properties

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.