[]
Represents an item displayed in ChoiceField.
public class ChoiceFieldItem
Initializes a new instance of the ChoiceFieldItem class.
public ChoiceFieldItem()
Initializes a new instance of the ChoiceFieldItem class.
public ChoiceFieldItem(string text, string value)
text
stringThe item's text.
value
stringThe item's value.
Initializes a new instance of the ChoiceFieldItem class.
public ChoiceFieldItem(string text)
text
stringThe item's text.
Gets or sets the text used to display an item.
public string Text { get; set; }
Gets or sets the value of item, if not specified then Text will be used as value.
public string Value { get; set; }
Creates a new object that is a copy of the current instance.
public ChoiceFieldItem Clone()
A new object that is a copy of this instance.