[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.DropDownItem

DropDownItem Class

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.

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

Constructors

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.