[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.SelectorItem

SelectorItem Class

Represents a base item for selection controls such as IDropDown and IListBox.

A SelectorItem stores the text value associated with an item and provides shared behavior for selector-based controls, including read-only state management. This abstract class is not used directly; instead, work with a concrete subclass and add instances to the item collection of the owning control.

When an item is marked as read-only, assigning Value throws an InvalidOperationException. Use Value to read the current item content and GrapeCity.Documents.Excel.Forms.SelectorItem.IsReadOnly to determine whether the item can be modified.

Inheritance
SelectorItem
Namespace: GrapeCity.Documents.Excel.Forms
Assembly: DS.Documents.Excel.dll
Syntax
public abstract class SelectorItem
Public MustInherit Class SelectorItem
Examples
IDropDown dropDown = worksheet.Controls.AddDropDown(20, 20, 120, 20);
DropDownItem item = new DropDownItem("Pending");
dropDown.Items.Add(item);
string value = item.Value;

Constructors

Name Description
SelectorItem()

Properties

Name Description
Value

Gets or sets the content of this item.

Gets or sets the string currently stored in the selector item. This value represents the item content used by selector-based controls such as IDropDown and IListBox.