[]
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.
public SelectFieldItem(string text, object value)
Public Sub New(text As String, value As Object)
| Type | Name | Description |
|---|---|---|
| string | text | The display text of the item. Can be |
| object | value | The value associated with the item. Can be |
SelectFieldItem item = new SelectFieldItem("Option 1", "1");
CheckBoxListCellType cellType = new CheckBoxListCellType();
cellType.Items.Add(item);
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.
public SelectFieldItem()
Public Sub New()
SelectFieldItem item = new SelectFieldItem();
item.Text = "Option 1";
item.Value = "1";
CheckBoxListCellType cellType = new CheckBoxListCellType();
cellType.Items.Add(item);