[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.DropDownItem.-ctor

DropDownItem Constructor

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.

Declaration
public DropDownItem()
Public Sub New()
Examples
DropDownItem item = new DropDownItem();
item.Value = "Pending";

DropDownItem(string)

Creates an item with value.

This constructor initializes the item by setting its value.

Declaration
public DropDownItem(string value)
Public Sub New(value As String)
Parameters
Type Name Description
string value

The value of item.

Examples
IDropDown dropDown = worksheet.Controls.AddDropDown(20, 20, 120, 20);
DropDownItem item = new DropDownItem("Pending");
dropDown.Items.Add(item);