[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.SelectFieldItem.-ctor

SelectFieldItem Constructor

SelectFieldItem(string, object)

Creates an item for a checkbox list or radio button list.

This constructor initializes the display text shown to the user and the underlying value associated with the item.

Declaration
public SelectFieldItem(string text, object value)
Public Sub New(text As String, value As Object)
Parameters
Type Name Description
string text

The display text of the item. Can be null.

object value

The value associated with the item. Can be null.

Examples
SelectFieldItem item = new SelectFieldItem("Option 1", "1");
CheckBoxListCellType cellType = new CheckBoxListCellType();
cellType.Items.Add(item);

SelectFieldItem()

Generates an item for a checkbox list or radio button list.

This constructor creates an empty item. Set the item's text and value after construction by using Text and Value.

Declaration
public SelectFieldItem()
Public Sub New()
Examples
SelectFieldItem item = new SelectFieldItem();
item.Text = "Option 1";
item.Value = "1";
CheckBoxListCellType cellType = new CheckBoxListCellType();
cellType.Items.Add(item);